-[8.5b2] Internal 7z unpacker fails if multiple pswds used

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

-[8.5b2] Internal 7z unpacker fails if multiple pswds used

Post by *MVV »

Test arhives: aaa.7z, bbb.7z.

Both archives contain 3 files: History.txt with password 1, License.txt with password 2 and readme.txt with password 3. Second archive also has encrypted headers with password 3. TC doesn't allow to extract any file from these archives.

Maybe second archive type is not an officially supported archive type (7-Zip can't unpack it) but it is valid (Total7zip is able to unpack both). Anyway, first one is fully supported by 7-Zip (GUI/console) and any other software.
Biozynotiker
Member
Member
Posts: 164
Joined: 2011-03-22, 09:57 UTC
Location: Germany

Post by *Biozynotiker »

I'm able to unpack all 3 files from the aaa.7z

But there is a problem with the temp files that TC is created from this archive.

Let me explain:
- Open aaa.7z by hitting return
- press f3 on "history.txt" enter password "1"
- TC shows an "user abort" message, but it is fully extracted in %temp%\_tc
- repeate with "licence.txt"

So TC is generaly able to extract this, but it seems there is problem with finding extracted files in the temp folder.
But there seem a new bug with 7z handling, i got "pack method is not supported" so many times while extracting or testing even the simplest 7z archiv.

The bbb.7z seems to be valid, but it's not created in one go.
first 2 files seems compressed with pwd 1 and 2, and with the 3rd file, the archive was updated with header encryption.
#92832
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, 7zip and rar archives with multiple passwords are currently not supported. I don't know yet whether it's possible at all to support them with the unrar/7zip dlls, but I will try.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Total7zip wokrs with 7z.dll and it successfully unpacks both archives. 7-Zip works with same 7z.dll and successfully unpacks first archive (but shows error 'wrong password' for every file of second archive that has password different than archive headers password). So 7z.dll supports such archives.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

First type archive (multiple passwords, unencrypted headers) may be unpacked now by 8.50b3, nice. :)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The problem with file bbb.7z is that you cannot give two different passwords to 7zip dll (for headers and files). You can actually look into the file now with password '3', and extract that file too, but you cannot extract the other two (there is a crash outside of TC, probably in the dll).
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Interesting how Total7zip does it. :)
It can't extract file with password '3' too BTW.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Well, TC can extract ONLY the file with password '3' because it uses the same password as the file name password...
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately I could not fix this problem, sorry. You can unpack these files by following a very specific order, though. People who need this should install a 7zip plugin.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I agree that it is a very special case so it is not a problem not to have support for it. Thanks for attempt.
Post Reply