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

Question response files backed up even when user data is not included

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Simple case without user data.

      (Bits of this assume that images, which are already compressed, say about the same size when put in a backup file.)

      1. Create a quiz.
      2. Start adding an essay question.
      3. Settin the question category to "Default for quiz ..."
      4. Add a 100kB image to the question text.
      5. Set it so that the student is allowed to attach a file as part of the response.
      6. Save the question
      7. As a student, attempt the quiz, and attach a 1MB image file.
      8. As admin, backup the course without user data. Verify that the backup size is about 100kB
      9. If you can be bothered, download the .mbz file, and unzip/un-tgz the file and verify that it contains the image from the question text, but not the other one.
      10. Restore the backup as a new course, and verify that the image is still in the question text.

      Simple case with user data.

      1. Now backup the course with user data. Verify that the backup size is about 1100kB
      2. If you can be bothered, download the .mbz file, and unzip/un-tgz the file and verify that it contains both images.
      3. Restore the backup as a new course, and vrify that the questions and response images have survived the process.

      Complex case

      1. Now create a multiple choice question, with One or multiple answers? set to Multiple answers allowed and ...
      2. Expand all the sections of the form, and add a different image into each Atto editor,
      3. Now backup this course (with or without user data).
      4. Restore it as a new course.
      5. Verify that all the images are still in the right parts of the question.
      Show
      Simple case without user data. (Bits of this assume that images, which are already compressed, say about the same size when put in a backup file.) Create a quiz. Start adding an essay question. Settin the question category to "Default for quiz ..." Add a 100kB image to the question text. Set it so that the student is allowed to attach a file as part of the response. Save the question As a student, attempt the quiz, and attach a 1MB image file. As admin, backup the course without user data. Verify that the backup size is about 100kB If you can be bothered, download the .mbz file, and unzip/un-tgz the file and verify that it contains the image from the question text, but not the other one. Restore the backup as a new course, and verify that the image is still in the question text. Simple case with user data. Now backup the course with user data. Verify that the backup size is about 1100kB If you can be bothered, download the .mbz file, and unzip/un-tgz the file and verify that it contains both images. Restore the backup as a new course, and vrify that the questions and response images have survived the process. Complex case Now create a multiple choice question, with One or multiple answers? set to Multiple answers allowed and ... Expand all the sections of the form, and add a different image into each Atto editor, Now backup this course (with or without user data). Restore it as a new course. Verify that all the images are still in the right parts of the question.
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      When backing up a course with essay question. The file responses from user are included even when user data in disabled.

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            jackermann Jakob Ackermann
            Peer reviewer:
            Eloy Lafuente (stronk7)
            Integrator:
            Sam Hemelryk
            Tester:
            Ankit Agarwal
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              12/Jan/15