Bug 516059

Summary: Ark can not open archives that are protected by an empty password
Product: [Applications] ark Reporter: maud-lin
Component: generalAssignee: Elvis Angelaccio <elvis.angelaccio>
Status: CONFIRMED ---    
Severity: minor CC: olib141, rthomsen6
Priority: NOR    
Version First Reported In: 25.12.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description maud-lin 2026-02-15 22:06:22 UTC
SUMMARY

I have a .7z file that is protected with an empty password.
Ark does a) not allow to enter a empty password and b) even if patched and an empty password is given, ark can not open the archive successfully

STEPS TO REPRODUCE
1. Create a archive.7z thats protected with an empty password by running:
   echo "" | 7z a -p -mhe=on "archive.7z" file.txt 
2a. Open the 7z archive with ark. Get prompted for a password (You can not submit an empty password)
2b. Patch Ark by reverting this commit: https://invent.kde.org/utilities/ark/-/commit/5bf3b5addbd171ae7e67983ee62e40601351b975 and try again.

OBSERVED RESULT
Ark does not open the archive successfully.

EXPECTED RESULT
Ark should open the file and shows the contents of the archive

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.18.9-arch1-2
Qt Version: 6.10.2-1

ADDITIONAL INFORMATION
Comment 1 Oliver Beard 2026-02-16 13:52:32 UTC
Can reproduce with the given command, Arch package '7zip' providing the 7z binary.