Skip to content

[Bug] Context menu extract on PPZ creates folder before password validation #1620

@iamkartiknayak

Description

@iamkartiknayak

Issue/Description:
When using the context menu extract option on a password protected zip (PPZ), a folder with the same name as the zip file is created immediately, before entering the password. If an incorrect password is entered, the folder remains. Repeating the process with wrong passwords continues to create more folders with (copy $index).

This issue only occurs when the PPZ contains one or more folders inside it. If the PPZ contains a single file or multiple files (without folders), the issue does not occur.

Version:

 cosmic-files:
  Installed: 1.0.6~1770746763~24.04~d668d04

Steps to Reproduce:

  • Create a password protected zip (PPZ) that contains one or more folders.
  • Right-click the PPZ file.
  • Click the extract option from the context menu.
  • Observe that a folder with the zip name is created before entering the password.
  • Enter an incorrect password.
  • Renter a wrong password again.

Expected Behavior:
The destination folder should only be created after successful password validation and extraction. No folder should be created if the password is incorrect.

Other Notes:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions