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

Blackboard ZIP import with multiple pool files incorrectly associates embedded images

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.4, 2.4.1, 2.5
    • 2.3.7, 2.4.4
    • Questions
    • MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • MOODLE_23_STABLE, MOODLE_24_STABLE
    • Hide

      Current (broken) behaviour:

      1. Import the bb-test.zip sample as Blackboard format into a course.
      2. Go to Course administration > Question bank > Questions.
      3. Preview the "res00000 q1" question and observe that the picture reads "res00001/subdir/test1.jpg" and the text below it "res00000 q1".
      4. Preview the "res00001 q1" question and observe that the picture reads "res00001/subdir/test1.jpg" and the text below it "res00001 q1".

      New (fixed) behaviour:

      1. Import the bb-test.zip sample as Blackboard format into a course.
      2. Go to Course administration > Question bank > Questions.
      3. Preview the "res00000 q1" question and observe that the picture reads "res00000/subdir/test1.jpg" and the text below it "res00000 q1".
      4. Preview the "res00001 q1" question and observe that the picture reads "res00001/subdir/test1.jpg" and the text below it "res00001 q1".
      Show
      Current (broken) behaviour: Import the bb-test.zip sample as Blackboard format into a course. Go to Course administration > Question bank > Questions. Preview the "res00000 q1" question and observe that the picture reads "res00001/subdir/test1.jpg" and the text below it "res00000 q1". Preview the "res00001 q1" question and observe that the picture reads "res00001/subdir/test1.jpg" and the text below it "res00001 q1". New (fixed) behaviour: Import the bb-test.zip sample as Blackboard format into a course. Go to Course administration > Question bank > Questions. Preview the "res00000 q1" question and observe that the picture reads "res00000/subdir/test1.jpg" and the text below it "res00000 q1". Preview the "res00001 q1" question and observe that the picture reads "res00001/subdir/test1.jpg" and the text below it "res00001 q1".

    Description

      When importing zipped Blackboard 6+ format questions, if there are multiple res000xx.dat pool files within, and they each have image resources associated with them, only the images of the last pool will be used when importing the previous ones. This will mean either broken images for questions from the earlier pool files, or the wrong instance of an image being used if filenames happen to match.

      My patch implements a mechanism for using the correct state for the relevant pool files so that the right images get imported. I've also attached a simple demonstration ZIP to illustrate the problem and the solution.

      Attachments

        Issue Links

          Activity

            People

              jonof Jonathon Fowler
              jonof Jonathon Fowler
              Jean-Michel Vedrine Jean-Michel Vedrine
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Adrian Greeve Adrian Greeve
              Safat Shahin, Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/May/13