Skip to content

[BUG] Unable to extract 7z archive created with 7-Zip with long (129 characters or more) password #743

Description

@aaronweeden

Configuration

  • Keka version: 1.2.4 (4287)
  • macOS version: 10.13.6 (17G14042)

Describe the bug

Unable to extract a 7z archive that was compressed using the 7-Zip software with a password of 129 characters or more. It works fine with a password of 128 characters or fewer.

To Reproduce

Steps to reproduce the error (see the attached 7zip_test_129.log):

  1. Create a 7z archive using the 7-Zip software with a password of 129 characters or more, such as the attached 7zip_test_129.zip (change the extension to 7z) with the password RDT7t3M4SjjbmDOp1ZRrwIYp0RvxKuVKC8I9yMYFyGbQM6vQTyayIlYNfpseX5wCYRp2hyBQTjqqSch3QHsjjw9ZK5jCXueIOr1oAzmAcgJsPMxi9UtGwvlNrALIOZIun
  2. Open the file with Keka
  3. Enter the password
  4. The box shows "0 seconds," "1 seconds," and then refuses to extract the file.

Steps to reproduce working behavior (see the attached 7zip_test_128.log)

  1. Create a 7z archive using the 7-Zip software with a password of 128 characters or fewer, such as the attached 7zip_test_128.zip (change the extension to 7z) with the password 8nHkKgO9G4jUaxOOfs8nqTwvAIxXNDBOCEXSwZc25tl5RxD7CPmQdj9JaZsj7QlCV7xHJMq45peFeFDAabA5fLd6xhLoJWxT7VJy7Bv2kDr0Hk2Zj4L2bdTQEfRBOoMF
  2. Open the file with Keka
  3. Enter the password
  4. The box shows "0 seconds," "1 seconds," "about a minute," and then extracts the file.

Expected behavior

The behavior should be the same for passwords of any length. There should not be a cutoff at 128 characters.

Screenshots

N/A

Additional context

I do not have information about the version of Windows or 7-Zip that were used to create the example files.
I suspect the most important line in 7zip_test_129.log is "DEV: Dismissing delayed tasks"

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions