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

Some import/export question format don't accept the filetype they should accept

    Details

    • Testing Instructions:
      Hide

      1. Try to import a Moodle XML file. (Create one by exporting from another Moodle). Make sure it still works.

      2. Try to import a GIFT file. Make sure it works. You can find one in question/format/gift/simpletest/fixtures/questions.gift.txt

      3. Try to get hold of a blackboard_six format file, and if you can, try importing it.
      (See the comments be Chris Follin who can probably send you a test file, even thought it cannot be attached here.) Alternatively use the 2 attached files from Jean-Michel Vedrine on March 4th. He explains the expected results in a comment below.

      Show
      1. Try to import a Moodle XML file. (Create one by exporting from another Moodle). Make sure it still works. 2. Try to import a GIFT file. Make sure it works. You can find one in question/format/gift/simpletest/fixtures/questions.gift.txt 3. Try to get hold of a blackboard_six format file, and if you can, try importing it. (See the comments be Chris Follin who can probably send you a test file, even thought it cannot be attached here.) Alternatively use the 2 attached files from Jean-Michel Vedrine on March 4th. He explains the expected results in a comment below.
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      Hello Tim,
      In some import formats there is a missing function :
      public function mime_type()
      As a consequence the import is broken
      For instance the blackboard_six format is missing
      public function mime_type()

      { return 'application/zip'; }

      And the learnwise format is missing
      public function mime_type()

      { return 'application/xml'; }

      I will do a quick review and will report in comments the others that I found.
      Unfortunately I don't have a test file for each format and all these formats don't have tests included so I only speak from looking at the code and for people posts in the forum (this is how I discovered the problem.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  22 Vote for this issue
                  Watchers:
                  12 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    12/Mar/12