| Summary: | ark won't open rar archives fully encrypted with password (ie headers encrypted too, not only files) | ||
|---|---|---|---|
| Product: | TDE | Reporter: | jm82an4zn1 |
| Component: | tdeutils | Assignee: | jm82an4zn1 |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | bugwatch, darrella, kb9vqf |
| Priority: | P4 | ||
| Version: | 3.5.11 [Trinity] | ||
| Hardware: | All | ||
| OS: | All | ||
| Compiler Version: | TDE Version String: | ||
| Application Version: | Application Name: | ark | |
| Attachments: |
file that doesn't get opened by ark
diffpatch for kdeutils-kde3_3.5.12-0ubuntu6+r1075407 |
||
Created attachment 19 [details]
diffpatch for kdeutils-kde3_3.5.12-0ubuntu6+r1075407
Fixes open/extract rar archives with header encrypted (password), eg the file formerly attached.
The patch modifies ark to always check for error message from rar/unrar on open so that can spot if password is required, then asks user to feed it.
(In reply to comment #1) > Fixes open/extract rar archives with header encrypted (password), eg the file > formerly attached. Well I forgot to attach the test archive, can create it with: touch file rar a -hppassword arkNOT.rar file The archive arkNOT.rar should be the one that without patching does not get opened/extracted Otherwise normal password encryption would work as eg touch file rar a -ppassword arkOK.rar file AND even after patch it works, of course. Other formats support is not broken after applying the patch. (7z still is not correctly supported for password encryption, but that is another issue) Patch looks sane, uploaded to SVN in revision 1119969. Thanks for reporting, and also thanks to jm82an4zn1@sxipper.net for the patch! |
Created attachment 17 [details] file that doesn't get opened by ark to reproduce: dd if=/dev/zero of=file bs=1 count=1024 #create new file rar a -hppassword arkNOT.rar file #create rar archive with password set which encrypts headers too (so the content filenames won't be visible if the correct password is not inserted) -> in Ark, on open: "An error occurred while trying to open the archive" if instead, file-only password encryption is applied all goes ok: rar a -ppassword arkOK.rar file # <=this is opened fine in Ark then it asks password Note: Ark for KDE4 does not work too (it stalls with a status of "Loading archive..."), gnome Fileroller works ok, of course cmdline rar or unrar works ok. Maybe commandline shell output is useful for debugging, as with full headers encrypted rar ask the password before reading the archive, and with only file encrypted it opens the archive normally then asks password for each file in the archive being extracted or updated.