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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1, 2.2.1, 2.3
    • 2.1.5, 2.2.2
    • Questions
    • MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • MOODLE_21_STABLE, MOODLE_22_STABLE
    • 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.

    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.

      Attachments

        1. basic-chem1-bb-webct8-04.zip
          84 kB
        2. basic-chem1-bb-webct8-04.zip
          84 kB
        3. domain and range test.zip
          52 kB
        4. sample_bb6.dat
          38 kB
        5. sample_bb6.ZIP
          4 kB

        Issue Links

          Activity

            People

              jonof Jonathon Fowler
              jmvedrine Jean-Michel Vedrine
              Tim Hunt Tim Hunt
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Michael de Raadt Michael de Raadt
              Safat Shahin, Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              22 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                12/Mar/12