-
Bug
-
Resolution: Fixed
-
Critical
-
2.2
-
None
-
MOODLE_22_STABLE
-
MOODLE_22_STABLE
While working on MDL-30435 I was trying to restore http://openlearn.open.ac.uk/blocks/formats/logrequest.php?url=/file.php/2592/exports/MST209_1_imscc.zip in the recent Moodle 2.2dev. At very early stages of the conversion, when the manifest is being validated, I am getting this exception:
Error in /home/mudrd8mz/moodledata/moodle22/temp/backup/f9f2a42e10a2296e8cef5d6a9877b6e7/imsmanifest.xml: Element '
{http://ltsc.ieee.org/xsd/imscc/LOM}string', attribute 'language': 'x-t-cc-url' is not a valid value of the atomic type 'xs:language'. at line 88
Stack trace:
- line 96 of /backup/converter/imscc1/lib.php: imscc1_convert_exception thrown
- line 128 of /backup/converter/convertlib.php: call to imscc1_converter->execute()
- line 215 of /backup/util/helper/convert_helper.class.php: call to base_converter->convert()
- line 400 of /backup/controller/restore_controller.class.php: call to convert_helper::to_moodle2_format()
- line 35 of /backup/restore.php: call to restore_controller->convert()
This is because of the following line in imsmanifest.xml:
<imsmd:string language="x-t-cc-url">http://creativecommons.org/licenses/by-nc-sa/2.0/uk/</imsmd:string>
|
I don't know much about CC specification but some quick Googling results suggest that "x-t-cc-url" is a valid pseudo-language code. I need to know whether there is a bug in LMS CC XML schemas shipped with Moodle or if the package is actually broken.
- blocks
-
MDL-30435 When importing Common Cartridge package, link are broken.
-
- Closed
-