By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 181

Summary: ark won't open rar archives fully encrypted with password (ie headers encrypted too, not only files)
Product: TDE Reporter: jm82an4zn1
Component: tdeutilsAssignee: 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

Description jm82an4zn1 2010-04-17 13:00:01 CDT
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.
Comment 1 jm82an4zn1 2010-04-27 12:20:32 CDT
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.
Comment 2 jm82an4zn1 2010-04-27 12:25:40 CDT
(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)
Comment 3 Timothy Pearson 2010-04-27 23:03:53 CDT
Patch looks sane, uploaded to SVN in revision 1119969.

Thanks for reporting, and also thanks to jm82an4zn1@sxipper.net for the patch!