Commit Graph

2823 Commits

Author SHA1 Message Date
Andrew Nicols ffc51ab3fd MDL-81525 core_user: Move after_complete_login to correct NS 2024-04-15 08:53:35 +08:00
Andrew Nicols 07dab571dd Merge branch 'MDL-81192_403_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_403_STABLE 2024-04-12 11:48:24 +08:00
Mark Johnson 217154895c MDL-81192 sessions: Prevent false positive session change errors
If $CFG->enable_read_only_sessions_debug was not enabled, debugging could be
enabled part-way through a request when restart_with_write_lock was
called. This meant that a diff between the initial and final session
would be made during write_close(), although the intial session state
was never captured. This generated false positives in the logs, and it
thought any variable set in the session was a change from the original
value.

This ensures that debugging is enabled before the debug flag is allowed
to change, preventing false positives.
2024-04-11 08:54:39 +01:00
Huong Nguyen f990fcdca7 Merge branch 'MDL-81327-403' of https://github.com/laurentdavid/moodle into MOODLE_403_STABLE 2024-04-11 10:19:07 +07:00
Andrew Nicols 61282aa692 MDL-81327 report_log: Make group filtering logstore agnostic
The original implementation of group filtering introduced in MDL-80565
assumed that the log table existed in Moodle's own database. This is not
the case of the database logstore, or any similar logstore implemetning
the database \core\log\sql_reader interface.

Furthermore this check was also applying the SQL when the user had the
`accessallgroups` capability, or when the course was not in SEPARATE
groups mode (no groupmode and/or visible groups).

Co-authored: Laurent David <laurent.david@moodle.com>
2024-04-09 11:00:30 +02:00
Juan Leyva 5e7440acdc MDL-81405 session: New core cookie helper utility class 2024-04-06 12:25:51 +02:00
Andrew Nicols 5dfcc1aedd Merge branch 'MDL-80332-403' of https://github.com/jleyva/moodle into MOODLE_403_STABLE 2024-03-26 22:43:37 +08:00
Sara Arjona ce8ec44c40 Merge branch 'MDL-80088-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-25 16:20:31 +01:00
Juan Leyva 7cec5c9b71 MDL-80332 login: New hooks for complete login and passed MFA 2024-03-25 15:56:01 +01:00
Luca Bösch aa2919309f MDL-81074 core: align core_date::strftime results for numeric and string 2024-03-25 09:51:25 +08:00
Sara Arjona 33f4a94841 Merge branch 'mdl-80917-403' of https://github.com/Fragonite/moodle into MOODLE_403_STABLE 2024-02-28 16:44:20 +01:00
Andrew Nicols c108c1ead7 Merge branch 'MDL-80684-MOODLE_403_STABLE-fail_running_tasks_on_shutdown' of https://github.com/praxisdigital/moodle into MOODLE_403_STABLE 2024-02-28 14:20:49 +08:00
Huong Nguyen 897436f056 Merge branch 'MDL-80868-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-22 10:43:17 +07:00
Paul Holden 5e968b8864 MDL-80088 mod_imscp: better uploaded package filetype validation. 2024-02-20 14:10:10 +00:00
Andrew Nicols 7653886081 MDL-80862 testing: Reset task manager between behat tests 2024-02-20 10:54:43 +08:00
Frederik Milling Pytlick 11a3328b06 MDL-80684 core: Fail running tasks on shutdown
When you kill a process which is executing a task, it now marks it as failed.
2024-02-19 12:06:08 +01:00
Alexander Van der Bellen ec0c5414b2 MDL-80917 core_backup: Clear restored course cache 2024-02-15 09:09:41 +08:00
Paul Holden 78c1fbac60 MDL-80868 question: correct deleted format plugin definitions. 2024-02-08 16:15:31 +00:00
Sara Arjona 5780b8c228 Merge branch 'MDL-80544-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-08 11:26:47 +01:00
Paul Holden 8116bf4059 MDL-80544 h5p: add v126 library to list of standard plugins. 2024-02-08 10:12:54 +00:00
Huong Nguyen 4528d12f52 Merge branch 'MDL-80544-403' of https://github.com/sarjona/moodle into MOODLE_403_STABLE 2024-02-08 16:06:13 +08:00
Andrew Nicols b03d9fcc3f Merge branch 'MDL-80667-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-08 16:06:11 +08:00
Jun Pataleta bc763d3c0a Merge branch 'MDL-80693-m403' of https://github.com/sammarshallou/moodle into MOODLE_403_STABLE 2024-02-07 08:32:54 +08:00
Sara Arjona 1011b7166b MDL-80544 core_h5p: Remove the h5plib_v124 plugin
The h5plib_v124 plugin can be removed because it has been replaced
with h5plib_v126, which is using the latest versions of the
libraries.
2024-02-06 08:11:33 +01:00
Huong Nguyen 7b9d56e0df MDL-74775 adhoc_task: Do not clear the timecreated of failed tasks 2024-01-29 10:02:30 +07:00
Huong Nguyen 5c24699cbb Merge branch 'MDL-80516-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-25 10:45:28 +07:00
Sara Arjona 9f0ab79ba9 Merge branch 'MDL-76723-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-01-24 13:13:10 +01:00
Ilya Tregubov beb8242c98 Merge branch 'MDL-75579-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-01-23 12:04:42 +08:00
Huong Nguyen 7d4f09b978 MDL-75579 Backup: Prevent failed course restore task to be retried 2024-01-23 09:41:23 +07:00
Huong Nguyen 8c719efc1b MDL-75579 adhoc_task: Implement no-retry flag 2024-01-23 09:41:23 +07:00
sam marshall d44fe7013d MDL-80693 core_user: search() fails if no standard identify fields 2024-01-22 12:54:37 +00:00
Jun Pataleta 3beb0e2080 Merge branch 'MDL-80323-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-22 16:26:06 +08:00
Paul Holden 87617b8daa MDL-80667 task: preserve environment when running tasks from web.
For sites that rely on environment variables to set configuration,
ensure they are also present when executing task process.

Co-authored-by: Olivier Wenger <olivier.wenger@liip.ch>
2024-01-18 16:54:06 +00:00
Andrew Nicols fc8bbc49ea Merge branch 'MDL-80201-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-01-18 11:34:28 +08:00
Ilya Tregubov bf61a48eeb Merge branch 'MDL-69615-403' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE 2024-01-16 10:57:24 +08:00
Huong Nguyen 806dcd5eee MDL-69615 core_backup: Send backup report email once the tasks are done 2024-01-16 09:31:03 +07:00
Paul Holden 70f7b59c3c MDL-80516 core: more robust plugin update component checking.
Occurs when a plugin in incorrectly removed (via file system only,
rather than following proper uninstall process), and also contains
it's own sub-plugins.

In the above scenario, the update would request and receive back a
response for a plugin whose name was comprised of an empty string,
subsequently causing errors when processing said response.
2024-01-15 14:10:08 +00:00
Sara Arjona f08dadcdf8 Merge branch 'MDL-79091-MOODLE_403_STABLE' of https://github.com/jay-oswald/moodle into MOODLE_403_STABLE 2024-01-15 12:31:41 +01:00
Huong Nguyen 99f60697ec MDL-69615 core_task: Add a task trait 2024-01-15 11:24:02 +07:00
Paul Holden 142df0645c MDL-80323 h5p: fail content type retrieval task on errors.
It's better for the task to fail gracefully rather than silently
swallow any errors, so that the task API can schedule re-tries.

If the endpoint is temporarily down and/or misbehaving, this will
allow admins to have clearer failures.
2024-01-08 10:06:36 +00:00
Jun Pataleta bbfbc8abd1 MDL-76723 core_external: Handle format properties properly
- If a text format property defines the 'optional' attribute as true,
then the $required parameter that
is passed to \core\external\exporter::get_format_structure() should be
VALUE_OPTIONAL.
- If a default value is provided for a format property,
\core\external\exporter::get_format_structure() should pass the default
value to the external_format_value constructor.
- Added validation for external_format_value for the default parameter.
  Debugging will be shown in case an invalid default value is passed.
- Amended unit tests for better coverage.
2023-12-19 15:50:21 +08:00
Jun Pataleta b9698228ab MDL-80201 core: Check for default format value for exporter::export() 2023-12-19 15:46:59 +08:00
Huong Nguyen ac2acd0072 Merge branch 'MDL-74466-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-12-13 09:28:57 +07:00
Brendan Heywood b654282b18 MDL-80309 tasks: Clean up mtrace logs 2023-12-07 12:08:05 +08:00
Jun Pataleta c2c03f203f Merge branch 'MDL-80281_403_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_403_STABLE 2023-12-07 10:16:52 +08:00
Sara Arjona b7c8f7f723 Merge branch 'MDL-80185-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2023-12-04 11:00:44 +01:00
Paul Holden 4ac4b93064 MDL-74466 repository: avoid passing around sesskey when not required. 2023-12-04 09:22:32 +00:00
Jay Oswald 3ef7a7d76a MDL-79091 core_badges: refactor bades cron task 2023-11-30 17:24:37 +11:00
Jay Oswald 8cf880c5de MDL-79091 core_badges: use adhoc tasks 2023-11-30 17:24:37 +11:00
Mark Johnson cb18237b5c MDL-80281 session: Don't report long session locks for readonly sessions
Previously, $CFG->sessionlockdebug was reporting long session locks for
all requests, even if they defined READ_ONLY_SESSION. This change
ensures that only sessions with locks are reported.
2023-11-28 16:21:17 +00:00