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

CLOZE Questions imported from another course end up with broken image links

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.2, 2.2.5, 2.3.2
    • Fix Version/s: 2.2.7, 2.3.4
    • Component/s: Questions
    • Labels:
    • Environment:
      MS-SQL 2008 R2, IIS 7.5, Windows 2008
    • Database:
      Microsoft SQL
    • Testing Instructions:
      Hide

      Testing export + import of multianswer questions with images in text

      Create a few CLOZE type questions in a category of the question bank with some images in the question text. Warning: Don't put images in embedded multichoice subquestions answers as this is a separate issue (MDL-26511) not yet solved.
      Export this question's category using Moodle XML format.
      Import back the xml file into a new course, verify that questions display fine including the images both in preview and if you include them in a quiz.
      Open one of these questions for editing and verify the images are correctly displayed with a draft url.

      import of a file submitted by user

      import the quiz_sample_loco_moodle2.xml submitted 31/Oct/12 8:04 AM 125 kB attached to the present tracker issue by Paul Wray and verify you get 3 multianswer questions and that each one include an image both in preview and in editing (the image's name appear in bold above the image, this is not a bug).

      Show
      Testing export + import of multianswer questions with images in text Create a few CLOZE type questions in a category of the question bank with some images in the question text. Warning: Don't put images in embedded multichoice subquestions answers as this is a separate issue ( MDL-26511 ) not yet solved. Export this question's category using Moodle XML format. Import back the xml file into a new course, verify that questions display fine including the images both in preview and if you include them in a quiz. Open one of these questions for editing and verify the images are correctly displayed with a draft url. import of a file submitted by user import the quiz_sample_loco_moodle2.xml submitted 31/Oct/12 8:04 AM 125 kB attached to the present tracker issue by Paul Wray and verify you get 3 multianswer questions and that each one include an image both in preview and in editing (the image's name appear in bold above the image, this is not a bug).
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Pull Master Branch:

      Description

      We have exported a question category which contains a few CLOZE type questions which contain images. When we import these questions into the new course, on the same server, the images appear as broken links. Images in other question types such as matching import correctly and work as expected. The only change in the URLs is the number after the word draft but this happens in both cases.

      CLOZE Question - give broken gif

      http://server/moodle/draftfile.php/10/user/draft/273773194/Bridge%20Rectifier%20Numbered%20With%20Ground%20Point.gif http://server/moodle/draftfile.php/10/user/draft/548034668/Bridge%20Rectifier%20Numbered%20With%20Ground%20Point.gif

      Matching Question - works correctly

      http://server/moodle/draftfile.php/10/user/draft/118530274/Figure%206.gif http://server/moodle/draftfile.php/10/user/draft/937713623/Figure%206.gif

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jmvedrine Jean-Michel Vedrine
              Reporter:
              fweiss Fred Weiss
              Peer reviewer:
              Tim Hunt
              Integrator:
              Dan Poltawski
              Tester:
              Rajesh Taneja
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Jan/13