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

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

XMLWordPrintable

    • 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"  

      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".

       

       

        1. MDL-68137.jpg
          11 kB
          Anna Carissa Sadia

            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

              Created:
              Updated:
              Resolved:

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

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.