Created attachment 129366 [details] screenshot OBSERVED RESULT As we can see in the attached screenshot, "OK" button of the window that asks for password to extract zip, 7zip, rar and jar archives is enabled even when the password field is empty. If it is clicked, we get an error message (7zip and rar formats) or nothing happens (zip and jar formats). EXPECTED RESULT keep "OK" button disabled until user types something SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.19.0 KDE Frameworks Version: 5.71.0 Qt Version: 5.15.0
That's KPasswordDialog from kwidgetsaddons.
This requires that an application never shows the dialog when it accepts an empty password.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kwidgetsaddons/-/merge_requests/16
I'm interested in working on this issue. Was able to reproduce with below steps: 1. Compress file with password. "New Archive" -> 7-zip option with password. 2. Reopen ark and open newly created arhive. 3. Don't enter anything but just click OK. 4. An error dialog did not pop up.
A possibly relevant merge request was started @ https://invent.kde.org/utilities/ark/-/merge_requests/201
Git commit 5bf3b5addbd171ae7e67983ee62e40601351b975 by Carl Schwan, on behalf of Anant Verma. Committed on 13/12/2023 at 10:38. Pushed by carlschwan into branch 'master'. Don't allow user to submit with empty password M +20 -0 kerfuffle/queries.cpp https://invent.kde.org/utilities/ark/-/commit/5bf3b5addbd171ae7e67983ee62e40601351b975