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

Blackboard ZIP import with multiple pool files incorrectly associates embedded images

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.4, 2.4.1, 2.5
    • Fix Version/s: 2.3.7, 2.4.4
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      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".
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    13/May/13