-
Bug
-
Resolution: Fixed
-
Critical
-
2.4.6, 2.5.2
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
MOODLE_26_STABLE, MOODLE_27_STABLE
-
MDL-41746-master -
There are several webservices that are accepting a list of modules/course whatever and then operating on each thing in the list.
Examples are mod_assign::get_grades, mod_forum::get_forums_by_courses, course::get_courses
Because external_api::validate_context calls require_login on the context, it will only work for the first context in the list. Calling it with more than one context gives:
Debugging: Coding problem: unsupported modification of PAGE->context from 70 to 70
- line 928 of /lib/pagelib.php: call to debugging()
- line 972 of /lib/pagelib.php: call to moodle_page->set_context()
- line 2840 of /lib/moodlelib.php: call to moodle_page->set_cm()
- line 356 of /lib/externallib.php: call to require_login()
- caused a regression
-
MDL-47817 WS_SERVER constant is checked in lib/pagelib.php for 2.6, this constant was created for 2.7
-
- Closed
-
- has a non-specific relationship to
-
MDL-27968 Impossible to test externallibs (still occurs in phpunit tests)
-
- Closed
-
-
MDL-44106 use 'restore' and 'ws' origin in logged events
-
- Closed
-
- has been marked as being related by
-
MDL-46101 Do not call require_login() from external_api::validate_context()
-
- Closed
-