-
Bug
-
Resolution: Fixed
-
Blocker
-
3.1
-
MOODLE_31_STABLE
-
MOODLE_31_STABLE
-
MDL-53772-master -
require_login() sets $PAGE->context and was only ever designed for one request, one page style php code. External functions have to hook into this to set the correct context for filters, theme, language etc, but its harder because external functions may deal with multiple contexts and multiple external functions may be called from a single page. Also external functions should be callable from regular code, but currently this is all buggy and broken. We recently changed from debugging to exceptions when the page context is not set correctly. This breaks all correctly coded webservices that work on a context outside of a course.
Fix this mess.
- blocks
-
MDL-53451 Integrate CBE as a core plugin
- Closed
- caused a regression
-
MDL-56330 clean_returnvalue removes keys from external_multiple_structure
- Closed
- has a non-specific relationship to
-
MDL-44615 require_login simplified and improved
- Closed
- has been marked as being related by
-
MDL-54098 Review uses of require_login() / PAGE->set_context() within external functions
- Closed
- will help resolve
-
MDL-53742 Revert exception throwing if page context is not set (MDL-53274)
- Closed