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

Uploaded TGZ file using filepicker displays "Unzip" option, but is unable to unzip

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.3.3, 3.4
    • Fix Version/s: None
    • Component/s: Accessibility, Filepicker
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a course.
      2. Add Folder resource to the course.
      3. In "Adding a new Folder":
        1. Upload a .tgz file using the filepicker.
        2. Click on the uploaded .tgz file in the select files area. Modal should pop-up.
          • make sure the "Unzip" button is not displayed in the modal.**
        3. Repeat steps 1 and 2 by uploading other archived files (ex. .7z, .gz, etc.). The extension must not be .zip.
          • make sure each time the "Unzip" button is not displayed.
        4. Repeat steps 1 and 2 by uploading .zip file.
          • make sure the "Unzip" button is displayed. 
        5. Click on the "Unzip" button.
          • make sure the file is unzipped.

       

      Show
      Create a course. Add Folder resource to the course. In "Adding a new Folder": Upload a .tgz file using the filepicker. Click on the uploaded .tgz file in the select files area. Modal should pop-up. make sure the "Unzip" button is not displayed in the modal. ** Repeat steps 1 and 2 by uploading other archived files (ex. .7z, .gz, etc.). The extension must not be .zip. make sure each time the "Unzip" button is not displayed. Repeat steps 1 and 2 by uploading .zip file. make sure the "Unzip" button is displayed.   Click on the "Unzip" button. make sure the file is unzipped.  
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE
    • Pull Master Branch:
      MDL-61118-master

      Description

      This bug was discovered in testing MDL-43827.

      Steps to replicate:

      1. Create a course.
      2. Add Folder resource to the course.
      3. In "Adding a new Folder":
        1. Upload a TGZ file using the filepicker
        2. Select the uploaded TGZ file using the keyboard (navigate by pressing "Tab", press "Enter" to open / mouse click on file).
        3. Navigate through the pop-up using the keyboard and attempt to unzip the file using keyboard (press "Enter" on "Unzip" / mouse click on "Unzip").

      Expected behaviour:

      • If TGZ files are supported for unzipping, the TGZ file should unzip.
        • Or
      • If TGZ files are not supported for unzipping, the "Unzip" button in the pop-up should not be displayed.

      Current behaviour:

      • The Unzip button closes the popup and any files listed in the Files area is cleared.
      • No unzipping functionality is performed on the TGZ file.

        Attachments

          Activity

            People

            • Assignee:
              Geshoski Mihail Geshoski
              Reporter:
              zig Zig Tan (Inactive)
              Peer reviewer:
              Mark Nelson
              Integrator:
              Andrew Nicols
              Participants:
              Component watchers:
              Adrian Greeve, Mihail Geshoski, Peter Dias, Adrian Greeve, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: