Summary: | Ark is stunned on password-protected zip | ||
---|---|---|---|
Product: | [Applications] ark | Reporter: | andrey.xojiod |
Component: | general | Assignee: | Raphael Kubo da Costa <rakuco> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.8.1 | |
Sentry Crash Report: |
Description
andrey.xojiod
2012-01-11 17:55:45 UTC
Git commit c8913c380c19b776cf87a0d17cad52d281821df9 by Raphael Kubo da Costa. Committed on 23/01/2012 at 03:54. Pushed by rkcosta into branch 'KDE/4.8'. queries: Consider an empty password as a request cancellation. Empty passwords do not make sense as valid passwords (infozip, rar and the 7-Zip on Windows do not create archives with empty passwords, for example). Calling Query::setResponse(false) when an empty password is passed makes the code in CliInterface consider the current action has been canceled, as if the user has pressed the Cancel button in the password query dialog, and not pass a single newline in password queries. Even though the related bug report can also be considered to be caused by PasswordPromptPattern not being defined for the clizip plugin and CliInterface::handleLine() not checking for password prompts in Copy mode, this commit has the advantage that the user is not prompted twice for zip files if she enters an empty password the first time. The user should be informed that the action has been canceled, but this can be done in a separate commit. FIXED-IN: 4.8.1 M +5 -6 kerfuffle/queries.cpp http://commits.kde.org/ark/c8913c380c19b776cf87a0d17cad52d281821df9 |