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

"Download All Submissions as a zip" can remove file extension

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Scenario

      1. as teacher, create an assignment
      2. as student, submit a file named "test..pdf" (with 2 dots)
      3. as teacher, "view all submissions", and then "download all submissions"

       

      Actual result:

      Inside zip archive, file has been renamed "testpdf" (without any extension)

       

      Expected result:

      Inside zip archive, we should have a file named "test.pdf"

       

      Show
      Scenario as teacher, create an assignment as student, submit a file named "test..pdf" (with 2 dots) as teacher, "view all submissions", and then "download all submissions"   Actual result: Inside zip archive, file has been renamed "testpdf" (without any extension)   Expected result: Inside zip archive, we should have a file named "test.pdf"  
    • Affected Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Pull Master Branch:
      68137-master-prevent-removing-all-dots-in-filename

      Description

      When a student submits a file like "file..pdf", "Download All Submissions as a zip" action removes "..".

      So, the filename becomes "filepdf" in zip archive, when we expect to have "file.pdf".

       

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jboulen Julien Boulen
              Reporter:
              jboulen Julien Boulen
              Peer reviewer:
              Mihail Geshoski Mihail Geshoski
              Integrator:
              Andrew Lyons Andrew Lyons
              Tester:
              Anna Carissa Sadia Anna Carissa Sadia
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Matteo Scaramuccia, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Jul/20

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 10 minutes
                  2h 10m