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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.2
    • Component/s: Backup: IMS-CC
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              darko.miletic Darko Miletic
              Reporter:
              mudrd8mz David Mudrák (@mudrd8mz)
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Darko Miletic, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                5/Dec/11