111298 Commits

Author SHA1 Message Date
Paul Holden
ef67f43c67 MDL-79455 tool_uploadcourse: safe preview of uploaded course data. 2023-10-04 01:24:20 +00:00
Paul Holden
3400ae6510 MDL-79409 mod_imscp: appropriate unserialization of package structure. 2023-10-04 01:24:20 +00:00
Paul Holden
ba974a4add MDL-79408 mod_lesson: safer unserializing/comparison of properties. 2023-10-04 01:24:19 +00:00
David Woloszyn
7679452caf MDL-77846 core: Make endpoint revision number checks stricter
In some places we prevented cache poisoning, in others we did not. We
also did not place any restriction on the minimum value for a revision.

This change introduces a new set of functions for configonly endpoints
which validates the revision numbers passed in. If the revision is
either too old, or too new, it is rejected and the file content is not
cached. The content is still served, but caching headers are not sent,
and any local storage caching is prevented.

The current time is used as the maximum version, with 60 seconds added
to allow for any clock skew between cluster nodes. Previously some
locations used one hour, but there should never be such a large clock
skew on a correctly configured system.

Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
2023-10-04 01:24:19 +00:00
Huong Nguyen
5a765e124c MDL-66730 core_course: Improve permission check for category moving
Co-authored-by: Erica Bithell <egb10@cam.ac.uk>
2023-10-04 01:24:19 +00:00
Laurent David
a20997441d MDL-77795 mod_bigbluebuttonbn: Change meetingID on duplicate
* We need to set a different meetingID when duplicating or importing a
BigBlueButtonBN activity to prevent unwanted sharing of recordings between
meetings.
2023-10-04 01:24:19 +00:00
Paul Holden
100ac7c646 MDL-78820 h5p: use fullname of current user as the xAPI actor name. 2023-10-04 01:24:19 +00:00
meirzamoodle
0adb58ec9c MDL-78969 oauth2: remove auto-login after successful confirmation
With the new flow, users can go to the login page from the confirmed page,
and if the user successfully logs in, the user will be directed to the confirmed page.
To avoid that, the confirmed page can only be seen by users who are not logged in.
2023-10-04 01:24:19 +00:00
Paul Holden
aa8ab48521 MDL-78971 quiz_grading: escape user identity fields on display. 2023-10-04 01:24:19 +00:00
Jun Pataleta
b19a93b989
Merge branch 'MDL-79507_master' of https://github.com/marxjohnson/moodle 2023-10-04 09:15:45 +08:00
Jun Pataleta
1724362afc
Moodle release 4.3rc1 v4.3.0-rc1 2023-10-04 07:58:44 +08:00
Jun Pataleta
c3ec88f12d
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2023-10-04 07:58:41 +08:00
Ferran Recio
3f985bf3cf
MDL-79458 output: fix subpanels in classic 2023-10-03 13:32:27 +02:00
Jun Pataleta
b896c303f3
Merge branch 'MDL-79557-master' of https://github.com/jleyva/moodle 2023-10-03 12:18:13 +08:00
Jake Dallimore
d7c348cfe1
Merge branch 'MDL-79056-master' of https://github.com/junpataleta/moodle 2023-10-03 12:02:52 +08:00
Andrew Nicols
213fd0cdb3
MDL-78580 mod_quiz: Do not concatenate lang strings 2023-10-03 12:02:29 +08:00
Andrew Nicols
be8093e2c7
Merge branch 'MDL-78580_master' of https://github.com/marxjohnson/moodle 2023-10-03 11:05:42 +08:00
Huong Nguyen
6d6ed6822f
Merge branch 'MDL-79247' of https://github.com/stronk7/moodle 2023-10-03 09:56:55 +07:00
Huong Nguyen
96b03bc501
Merge branch 'MDL-79555-master' of https://github.com/ilyatregubov/moodle 2023-10-03 09:44:04 +07:00
Huong Nguyen
4a7259f236
Merge branch 'MDL-79224_master' of https://github.com/marxjohnson/moodle 2023-10-03 09:38:53 +07:00
Jun Pataleta
6ee9522dfa
Merge branch 'MDL-79254_master' of https://github.com/marxjohnson/moodle 2023-10-03 09:42:25 +08:00
Ilya Tregubov
9938ee3a04
Merge branch 'MDL-79534' of https://github.com/paulholden/moodle 2023-10-03 09:34:14 +08:00
Jun Pataleta
cfc14c45bb
Merge branch 'MDL-79535' of https://github.com/paulholden/moodle 2023-10-03 09:21:12 +08:00
Jun Pataleta
88b78ea367
Merge branch 'MDL-79364-master' of https://github.com/ilyatregubov/moodle 2023-10-03 09:16:38 +08:00
Juan Leyva
83461bcf5f MDL-79557 message: Clean subject field content for get_messages WS 2023-10-02 13:10:52 +02:00
Mark Johnson
6401ca4959 MDL-79224 core: Make Binary datafilter redisplay selected value
The Binary datafilter was returning a single value where all parts of
the API expect an array of values. This was working in most places by
fluke as this value was a single-character string, so doing $value[0]
returned the value. However, it was not working when deciding which
option to mark as selected when re-displaying the filter.

This change makes the filter return an array containing a single integer
value to match the rest of the API, then internally selects that single
value for comparison when deciding if an option should be selected.
2023-10-02 11:50:44 +01:00
Ilya Tregubov
f591de2b58
MDL-79555 core_grades: Remove copy pasted code.
Seems that data from form was overridden for no reason.
2023-10-02 17:31:43 +08:00
Ilya Tregubov
94a13aeeff
MDL-79364 backup: Fix conversion for 1.9 backups.
1.9 backups used current plugin version as oldversion.
But quiz uses some hardcoded version numbers when processing
restore which is lower then current plugin number, so some quiz
logic was ignored.

See define_structure(), process_quiz_question_instance() within
restore_quiz_stepslib.php
2023-10-02 15:26:50 +08:00
Ilya Tregubov
c80e366051
Merge branch 'MDL-79458-master' of https://github.com/ferranrecio/moodle 2023-10-02 13:30:07 +08:00
Huong Nguyen
0d6fb2546d
MDL-79344 tool_mfa: Use core/log for factor_webauthn 2023-10-02 11:41:53 +07:00
Huong Nguyen
8b395dcfc3
Merge branch 'MDL-79344-master' of https://github.com/stevandoMoodle/moodle 2023-10-02 11:36:59 +07:00
Eloy Lafuente (stronk7)
f284cd9eaf
MDL-79247 forum: Workaround same-time discussion modified dates bug
Within the forum_get_discussion_neighbours() function of forum
when the discussions timemodified (last post) is the same, there
is a bug that does strange things when calculating the prev and
next discussions.

Note that, in real life, this is really hard to achieve, but in tests,
when multiple discussions and post can be created by generators in the
same second (specially when the test machine is quick), chances of
facing that problem are higher.

By adding 1 second wait, we ensure that the discussions won't have
the same timemodified (last post) and workaround the problem.

No mater of that, the problem deserves an issue to be created
so we guarantee from code that it also works ok when the same
timemodified (last post) situation happens.
2023-10-01 23:23:30 +02:00
Eloy Lafuente (stronk7)
4fcb52cd45
MDL-79247 forum: Make discussion list ordering deterministic
Note that normally this doesn't matter much, but there are situations
when we want the discussion list ordering fully consistent /
deterministic.

Specifically, when discussions (or forum posts )are created in the
same second, or when the discussion titles are repeated, or 2
discussions have the same number of votes... (any criteria in general),
in the context of testing, we don't want the order
to be non-consistent, so we need to provide an extra sorting
criterion to make it fully deterministic.

So, in this case, we are adding a sort by discussion.id <<DIRECTION>>
that is an unique value, primary key... so cheap to calculate and,
that way, when the 1st sorting column has repeated values, the id
will decide.
2023-10-01 18:34:09 +02:00
AMOS bot
2e7514f4b0 Automatically generated installer lang files 2023-09-30 00:10:37 +00:00
Jun Pataleta
43d5aec47e
on-demand release 4.3beta+ 2023-09-29 22:21:20 +08:00
Jun Pataleta
36b7d90e5e
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2023-09-29 22:21:17 +08:00
Mark Johnson
f462a48202 MDL-79507 quiz: Hide version info when rendering blocked questions 2023-09-29 09:31:36 +01:00
Jun Pataleta
7cf8ef39ad
Merge branch 'MDL-79487-do-not-delete-refresh-token-master' of https://github.com/individual-it/moodle 2023-09-29 12:14:25 +08:00
Jun Pataleta
336ec5580a
Merge branch 'MDL-79041-master-2' of https://github.com/HuongNV13/moodle 2023-09-29 11:59:39 +08:00
Jun Pataleta
7998d80302
MDL-79056 gradereport_user: Make column heading IDs unique
Associate column headings of user report tables to the user ID that the
report is being generated for. This will prevent duplicate IDs for the
report columns when multiple user report tables are displayed on the
User report page.
2023-09-29 11:03:14 +08:00
Jun Pataleta
af22c038b7
MDL-79056 gradereport_user: Set grade category and item names as th
* The table cells mentioned in the `headers` attribute of other table
cells need to be using the table header <th> tag. Otherwise, HTML
validation fails.
2023-09-29 11:03:14 +08:00
Ilya Tregubov
bd380a11ec
Merge branch 'MDL-79280' of https://github.com/paulholden/moodle 2023-09-29 09:53:35 +08:00
Ilya Tregubov
45031e8205
Merge branch 'MDL-79521-master' of https://github.com/meirzamoodle/moodle 2023-09-29 09:21:40 +08:00
AMOS bot
96aac92ddc Automatically generated installer lang files 2023-09-29 00:08:13 +00:00
Paul Holden
a8c8967055
MDL-79535 mod_quiz: use dummy URL in random questions external call.
It's not required by the external method, however its absence causes
debugging warnings about missing page URL in the error logs.
2023-09-28 19:08:47 +01:00
Paul Holden
d7db5f08b0
MDL-79534 contenttype_h5p: correct fallback file used for icons. 2023-09-28 17:39:28 +01:00
Sara Arjona
458172696f
Merge branch 'MDL-79511-master' of https://github.com/meirzamoodle/moodle 2023-09-28 16:15:47 +02:00
Sara Arjona
d5bf67a67a
Merge branch 'MDL-79499-master' of https://github.com/mihailges/moodle 2023-09-28 16:05:25 +02:00
Sara Arjona
3839d226ca
Merge branch 'MDL-79482' of https://github.com/paulholden/moodle 2023-09-28 13:33:20 +02:00
Artur Neumann
d4709d817e
MDL-79487 oauth2: do not delete refresh token
when `log_out` is called from `\core\oauth2\client` it will delete the refresh token,
what it actually needs to use it to get a new access token
actually logging out is not needed here, the only thing we need to make sure is,
the invalid access token is removed from the session
that is done by storing `null`
2023-09-28 15:57:12 +05:45