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

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

    XMLWordPrintable

Details

    • MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • MOODLE_38_STABLE
    • 68137-master-prevent-removing-all-dots-in-filename
    • 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"  

    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

              jboulen Julien Boulen
              jboulen Julien Boulen
              Mihail Geshoski Mihail Geshoski
              Andrew Lyons Andrew Lyons
              Anna Carissa Sadia Anna Carissa Sadia
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                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