Commit graph

96771 commits

Author SHA1 Message Date
David Mudrák
2d60593892 MDL-68183 auth: Fix the performance of get_complete_user_data search
When searching for the user by a case-insensitive field (email address
is the only one supported now), the performance may be very poor as the
DB cannot use the index due to the LOWER() operation and the full
sequential scan of all the user records is performed. On some DBs such
as MySQL, this can be significantly improved by pre-filtering the users
with accent-insensitive search.

So we first perform accent-insensitive search for potential candidates
in a subselect, which can use the index. Only then we perform the
additional accent-sensitive search on this limited set or records.
2020-03-17 14:52:32 +01:00
David Mudrák
3621b497d2 MDL-68183 auth: Fix the performance of signup_validate_data search query
When searching for other users with the same email address, we perform
the case-insensitive and accent-sensitive search. That may be expensive
as some DBs such as MySQL cannot use the index in that case. Instead,
sequential scan of all the user records is performed and the comparison
uses the LOWER function to filter the matching records. This leads to
significant performance heavy queries which in turn represent a surface
for DoS attacks.

For that reason, we first perform accent-insensitive search for
potential candidates in a subselect, which can use the index. Only then
we perform the additional accent-sensitive search on this limited set or
records.
2020-03-17 14:52:32 +01:00
David Mudrák
77bc884473 MDL-68183 auth: Fix the performance of forgotten password user search
When searching for the user matching the given email address, we perform
the case-insensitive and accent-sensitive search. That may be expensive
as some DBs such as MySQL cannot use the index in that case. Instead,
sequential scan of all the user records is performed and the comparison
uses the LOWER function to filter the matching records. This leads to
significant performance heavy queries which in turn represent a surface
for DoS attacks.

For that reason, we first perform accent-insensitive search for
potential candidates, which can use the index. Only then we perform the
additional accent-sensitive search on this limited set or records.
2020-03-17 14:52:32 +01:00
Victor Deniz Falcon
73f8c56dfc weekly release 3.9dev 2020-03-12 14:22:06 +00:00
Victor Deniz Falcon
97f4721885 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-03-12 14:22:00 +00:00
Eloy Lafuente (stronk7)
d1feae1cb9 Merge branch 'MDL-66607-master' of git://github.com/andrewnicols/moodle 2020-03-12 10:08:22 +01:00
Andrew Nicols
8fd1dfc795 Merge branch 'MDL-68030-master' of https://github.com/Chocolate-lightning/moodle 2020-03-12 12:42:17 +08:00
Mathew May
d2695ab2f3 MDL-68030 core_course: Relocate chooser templates 2020-03-12 12:05:20 +08:00
Mathew May
c515848ce0 MDL-68030 core_course: Update behat 2020-03-12 11:51:45 +08:00
Mathew May
4883aabf0d MDL-68030 core_course: Tuncate long module names 2020-03-12 11:51:45 +08:00
Mathew May
486abbcb74 MDL-68030 core_course: Set focus onto the help area header 2020-03-12 11:51:45 +08:00
Mathew May
c368657153 MDL-68030 core_course: Properly size elements in the chooser 2020-03-12 11:51:45 +08:00
Eloy Lafuente (stronk7)
41f191b341 Merge branch 'MDL-68125-regression' of https://github.com/brendanheywood/moodle 2020-03-12 01:19:23 +01:00
Eloy Lafuente (stronk7)
0b698cb00b Merge branch 'MDL-67752-master-userstats' of git://github.com/mudrd8mz/moodle 2020-03-12 00:23:30 +01:00
Eloy Lafuente (stronk7)
a17bdbd5cf Merge branch 'MDL-68019-master' of git://github.com/peterRd/moodle 2020-03-11 23:47:43 +01:00
Brendan Heywood
17b04bdb25 MDL-68125 core: Fixed $CFG->reverseproxyignore install regression 2020-03-12 09:36:17 +11:00
Eloy Lafuente (stronk7)
d950188c19 Merge branch 'MDL-68061-master' of git://github.com/mickhawkins/moodle 2020-03-11 22:56:13 +01:00
Eloy Lafuente (stronk7)
9d6e37b3ef Merge branch 'MDL-67063-master-fix' of github.com:sarjona/moodle 2020-03-11 19:40:14 +01:00
Sara Arjona
7ae4a58229 MDL-67063 core_h5p: return the correct default handler 2020-03-11 18:18:09 +01:00
Andrew Nicols
56bcfae31f MDL-66607 message: Add pendingJS checks 2020-03-11 16:23:16 +08:00
Andrew Nicols
efeaa51edc MDL-66607 message: Resolve race conditions in message deletion process
This commit makes several changes:
1) Explicitly stop polling for messages when a conversation is deleted;
2) Check for deleted conversations when displaying new messages;
3) Do not add a new empty conversation; and
4) Introduce pendingJS checks to ensure that Behat waits for messags to finish rendering.
2020-03-11 16:23:16 +08:00
Andrew Nicols
63e821fb41 Merge branch 'MDL-67063-master' of git://github.com/sarjona/moodle 2020-03-11 16:06:00 +08:00
Sara Arjona
08fda3e0f8 MDL-67063 h5p: new h5plib plugintype for supporting multi coreAPI
A new plugintype has been created for having more than one installed
third-party H5P libraries. Existing libraries have been moved from
lib/h5p to the new h5plib_v124 plugin.
2020-03-11 08:46:16 +01:00
Andrew Nicols
e55d14e8d2 Merge branch 'MDL-68146' of https://github.com/stronk7/moodle 2020-03-11 11:33:25 +08:00
Eloy Lafuente (stronk7)
8aee741e24 MDL-68146 forms: remove duped help and advanced icons in checkboxes
They are exceptionally shown later, after the checkbox text already.

This is a fix for the regression introduced by MDL-63424.
2020-03-10 22:59:36 +01:00
Eloy Lafuente (stronk7)
5900253c79 Merge branch 'MDL-65724-master-3' of git://github.com/peterRd/moodle 2020-03-10 13:44:03 +01:00
Eloy Lafuente (stronk7)
c3afb828b3 Merge branch 'MDL-67337-master' of git://github.com/aanabit/moodle 2020-03-10 12:56:23 +01:00
Amaia Anabitarte
885d481749 MDL-67337 filter_displayh5p: Apply filter inside <a> tags 2020-03-10 12:10:35 +01:00
Eloy Lafuente (stronk7)
c30cddf43b Merge branch 'MDL-67189-master' of git://github.com/dpalou/moodle 2020-03-10 11:28:44 +01:00
Dani Palou
096c46bb4e MDL-67189 external: Add test to catch PHP exceptions 2020-03-10 08:26:43 +01:00
Dani Palou
2603034e0a MDL-67189 external: Catch Throwable in call_external_function 2020-03-10 08:26:43 +01:00
Eloy Lafuente (stronk7)
9dc5d5ce0b Merge branch 'MDL-67827-master' of git://github.com/andrewnicols/moodle 2020-03-09 20:36:09 +01:00
Sara Arjona
6185f1ce24 Merge branch 'MDL-66671-master' of https://github.com/dthies/moodle 2020-03-09 18:49:02 +01:00
Sara Arjona
cd717e8ba8 Merge branch 'MDL-67968-master' of git://github.com/rezaies/moodle 2020-03-09 18:16:56 +01:00
Sara Arjona
19766ef9ad Merge branch 'MDL-67902-master' of git://github.com/rezaies/moodle 2020-03-09 15:06:35 +01:00
AMOS bot
8608c4b0b3 Automatically generated installer lang files 2020-03-09 00:11:44 +00:00
Sara Arjona
32a05b5625 MDL-67063 core: fix error for supporting numbers in component
Component names should always support numbers (but the first character).
This patch will add PARAM_COMPONENT the expected regular expression
to validate the expected format.
2020-03-06 20:21:31 +01:00
Sara Arjona
06299fc604 MDL-67063 output: make public get_jsrev method 2020-03-06 20:21:31 +01:00
Shamim Rezaie
f63fd51189 MDL-67968 calendar: use aria-label instead of the abbr tag 2020-03-07 03:27:35 +11:00
Shamim Rezaie
863814c64a MDL-67968 calendar: explain weekday abbreviations 2020-03-06 19:58:25 +11:00
Shamim Rezaie
acbbe930eb MDL-67968 form: not to put empty label when no label is available 2020-03-06 19:58:25 +11:00
Shamim Rezaie
a728edcb0c MDL-67968 question: do not display sr-only legends
.accesshide was removed because:
 1. It was only kept in case it's still used somewhere, in a custom form
 field for instance.
 2. It was broken since 3.5 where we integrated
 https://github.com/bmbrands/moodle/compare/ab65b87f3d...MDL-62419-master
 So it's been ages that the reason mentioned on point 1 was not being
 satisfied
2020-03-06 19:58:25 +11:00
Shamim Rezaie
8fe311a3a5 MDL-67968 form: grouped element label fix 2020-03-06 19:58:25 +11:00
Peter
74d95c7bf9 MDL-65724 core: Force restore to use the settings from the plan
When importing use the import settings.
2020-03-06 13:43:39 +08:00
Andrew Nicols
604887ce8f MDL-67827 behat: Pending JS improvements for dialogues 2020-03-06 12:59:38 +08:00
Andrew Nicols
ae8d60c4a1 MDL-67827 behat: Add missing exception use 2020-03-06 12:59:38 +08:00
AMOS bot
8219570973 Automatically generated installer lang files 2020-03-06 00:10:41 +00:00
Sara Arjona
9df2f66fb4 weekly release 3.9dev 2020-03-05 17:31:15 +01:00
Sara Arjona
2a17d4371d Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-03-05 17:31:12 +01:00
Sara Arjona
546d9047b8 MDL-33671 behat: fix error with Select all/none checkbox 2020-03-05 15:58:56 +01:00