-
Bug
-
Resolution: Fixed
-
Minor
-
3.1, 3.2
-
MOODLE_31_STABLE, MOODLE_32_STABLE
-
MOODLE_31_STABLE
-
MDL-55314-master -
The method lti_load_cartridge doesn't undo it's changes to libxml_disable_entity_loader if there a problem with the response from the curl.
Also found problems with the exception in lti_load_cartridge (should be a coding_exception) and due to this method being called, several curls are being called unnecessarily during unit testing.
Example of how lti_load_cartridge can cause problems: First call lti_load_cartridge where it throw an error (EG: downloads invalid XML or some HTML). This will mean that the change to libxml_disable_entity_loader was not reverted. This then causes code like this to fail (it will say that the XML file cannot be opened):
$reader = new XMLReader(); |
$reader->open(__DIR__.'/path/to/file.xml'); |
In addition, the libxml_disable_entity_loader is not thread safe, so any active threads on the PHP server will also have this change, causing them to inconsistently fail to read XML.
- is a regression caused by
-
MDL-52154 Rework LTI admin screens
-
- Closed
-