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

Assign: Trailing underscore in folder names where downloading submissions with 'downloadasfolders' enabled.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.2.4, 3.3.1
    • Fix Version/s: None
    • Component/s: Assignment, Files API
    • Labels:
    • Affected Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE

      Description

      As noticed during testing of both MDL-59893 and MDL-36985, there is a trailing underscore on folder names when the user preference 'downloadasfolders' is set to true.

      To replicate (red lines are the failures)

      Prereqs:

      1. 3 students and 1 teacher enrolled in a course.
      2. 2 groups:
        • Group A containing student 1
        • Group B containing student 2
        • Student 3 is NOT in a group.
      3. 1 Grouping, containing both Group A and B.
      4. 5 image files on your local fs for testing uploads.
      5. An assignment (A1) with:
        • Online text submissions enabled
        • GroupMode set to 'separate groups'
        • Feedback files = true
        • Student submit in groups = yes, and set grouping to the grouping you created.
      6. An assignment (A2) with:
        • Online text submissions enabled
        • GroupMode set to 'separate groups'
        • Feedback files = true
        • Students submit in groups = no

      Test folder names after downloading

      For assignment 1:

      1. As student 1, create a submission and upload image 1 and image 4 in the online text area. Submit this.
      2. As student 2, create a submission and upload image 2 and image 5 in the online text area. Submit this.
      3. As student 3, create a submission and upload image 3 in the online text area. Submit this.
      4. As the teacher, on the view all submission page, make sure the checkbox 'Download submissions in folders' is ticked (bottom of page).
      5. Make sure the separate groups select is set to 'All participants'
      6. Select 'Download all submissions' from the grading action select.
      7. Extract the resulting zip file and confirm that
        • You see a folder for each student submission
        • Each student is prefixed with 'Group A', 'Group B' or 'Default group' respectively. Student 3 is listed as 'Default group' because they are not in the grouping - this is normal.
        • The folder names don't end with an underscore.
        • Inside each student submission folder you see the 2 corresponding image files and an 'onlinetext.html' file.
        • The image file names are not prefixed with anything.
      8. Open the onlinetext.html file for each student and confirm the images are displayed (i.e. confirm the link works).
      9. Now, repeat the download, but this time select 'Group A' first using the 'Separate groups' select box.
      10. Extract the zip files and confirm that:
        • You see a folder for each student submission
        • Each student is prefixed with 'Group A', 'Group B' or 'Default group' respectively. Student 3 is listed as 'Default group' because they are not in the grouping - this is normal.
        • The folder names don't end with an underscore.
        • Inside each student submission folder you see the 2 corresponding image files and an 'onlinetext.html' file.
        • The image file names are not prefixed with anything.

      For assignment 2:

      1. Repeat the above download steps with 'Download submissions in folders' enabled. Extract the file. This time confirm that:
        • No group prefix is present on the student folder nor on the submission files.
        • The folder name don't end with underscore
      2. Open the onlinetext.html file for each student and confirm the images are displayed (i.e. confirm the link works).

      Noting that upload feedback files needs to be properly tested again here too.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jaked Jake Dallimore
                Participants:
                Component watchers:
                Damyon Wiese, Adrian Greeve, Mihail Geshoski, Peter Dias, Matteo Scaramuccia, Jake Dallimore, Jun Pataleta, Ryan Wyllie
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: