Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-30444

Unable to convert IMS CC due to x-t-cc-url pseudo-language used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.2
    • 2.2
    • Backup: IMS-CC
    • None

      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.

            darko.miletic Darko Miletic
            mudrd8mz David Mudrák (@mudrd8mz)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.