[11.03] Error in packed file *.zip.001

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
hanyu
Junior Member
Junior Member
Posts: 5
Joined: 2024-02-23, 02:43 UTC

[11.03] Error in packed file *.zip.001

Post by *hanyu »

Hi,

After I saw the issue with 7z.001 was fixed, I thought it should solve the issue with zip.001, but it apparently doesn't.

I used ctrl+pgdn to see the error message on a filenamex.zip.001.

Would you please fix this issue?

Thank you,
Han
license #206205 - Han
User avatar
Stefan2
Power Member
Power Member
Posts: 4159
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: [11.03] Error in packed file *.zip.001

Post by *Stefan2 »

Hello Han, welcome.

Do you see this issue with all of your archives?




 
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [11.03] Error in packed file *.zip.001

Post by *ghisler(Author) »

That's a multi-part archive. Try opening the LAST part because that's what contains the central directory of the archive.
Author of Total Commander
https://www.ghisler.com
hanyu
Junior Member
Junior Member
Posts: 5
Joined: 2024-02-23, 02:43 UTC

Re: [11.03] Error in packed file *.zip.001

Post by *hanyu »

Yes, it's a multi-part archive. With the last part XXXX.zip.005, CTRL+PGDN command doesn't respond at all.

You can create samples by 7zip easily by splitting in any size with archive format zip and every archive split in this way doesn't work with CTRL+PGDN.
license #206205 - Han
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [11.03] Error in packed file *.zip.001

Post by *petermad »

2hanyu

It seems that I can not open XXXX.zip.00X files if the content of the file is a part of a file that is bigger than the size of XXXX.zip.00X.

So try Ctrl+PgDn on some of the other XXXX.zip.00X files. If there is only one big file in the split archive I can only use Ctrl+PgDn on XXXX.zip.001 - I see the same if I try to open the files with 7zFM.exe

I have not yet encountered not being able to open XXXX.zip.001
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
hanyu
Junior Member
Junior Member
Posts: 5
Joined: 2024-02-23, 02:43 UTC

Re: [11.03] Error in packed file *.zip.001

Post by *hanyu »

Hi Petermad,

You're saying you don't have any issue with CTRL+PGDN on your XXXX.zip.001 file.

My test files are like below with name and size:

video.zip.001 10,487,760
video.zip.002 10,487,760
video.zip.003 10,487,760
video.zip.004 10,487,760
video.zip.005 6,444,288

CTRL+PGDN only responds with video.zip.001, but it results in "Error in packed file video.zip.001"

FYI, if I changed the format to 7z multi-parts, the total commander would work perfectly.
license #206205 - Han
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [11.03] Error in packed file *.zip.001

Post by *petermad »

2hanyu
I packed a 200 Mb file to a zip file and split it up in 10 Mb chunks with 7zFM.exe.
In TC I can open the video.zip.001 file with Ctrl+PgDn and see the content of the archive, but I can NOT unpack the file - I get the message "Error in Packed file"!
The first time I open it with Ctrl+PgDn I get an error beep. If I try to open any other of the video.zip.0XX files nothing happens.

I then packed the same video file as a 7z file and split it up with 7zFM.exe.
If I try to open video.7z.001 in TC with Ctrl+PgDn I get the message "Error in Packed file"! (the opposite of your experience)
If I try to open any other of the video.7z.0XX files nothing happens.

If I pack several smaller files as a zip file and split it up it with 7zFM.exe the I can open all parts with Ctrl+PgDn as long as the part does not contain only a part of a file. I can unpack all files that are not split up across two archive parts.

I then tried packing the 200 Mb video file as a zip file With TC's internal packer and TC's function to make a Multiple disk archive, using 10 Mb as the chunk size. Here I can open the video.zip and all the video.zXX files with Ctrl+PgDn EXCEPT for the video.z01 file - it gives me the message "Error in Packed file"! (judging form the size the video.zip is the last packed part).
I can unpack the file by Ctrl+PgDn and F5 on any of the other of the video.zXX files or the video.zip file.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
hanyu
Junior Member
Junior Member
Posts: 5
Joined: 2024-02-23, 02:43 UTC

Re: [11.03] Error in packed file *.zip.001

Post by *hanyu »

2petermad

Yes, you're right. Using the internal Zip Packer, I can successfully open zip files, but it produced zip, z01, z02, z03, and z04, unlike 7zip. I now understand why Ghisler said opening(CTRL+PGDN) the smallest file because it is the zip file produced by the internal zip packer.

Though it's still strange, you can CTRL+PGDN zip.001 while you cannot 7z.001. Do you use the 11.03 without any external packer plugins?

2ghisler, as you noticed already, I'm talking about 7zip created multi-part zip.001 file, not produced by the internal zip packer. Would you consider supporting this format?
license #206205 - Han
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [11.03] Error in packed file *.zip.001

Post by *petermad »

2hanyu
Though it's still strange, you can CTRL+PGDN zip.001 while you cannot 7z.001. Do you use the 11.03 without any external packer plugins?
I have the Total7zip plugin installed.

But if I start TC with a fresh ini file, thus no plugins (only internal 7z unpacker) then:
I can open .7z.001 files both by pressing Enter and Ctrl+PgDn. And I can unpack the entire set of archives.
I can NOT open .zip.001 files, neither by pressing Enter nor Ctrl+PgDn.
I can open .rar.001 files both by pressing Enter and Ctrl+PgDn. But I can NOT unpack archives.


If I have the Total7zip installed there are several options:
I can open .7z.001 files by pressing only by pressing Enter, but not by Ctrl+PgDn (I consider this a bug). And I can unpack the entire set of archives.
I can open .zip.001 files both by pressing Enter and Ctrl+PgDn. But I can NOT unpack the archives.
I can open .rar.001 files both by pressing Enter and Ctrl+PgDn. But I can NOT unpack the archives.


I can make an extra extension in the [PackerPlugins] section of wincmd.ini:

Code: Select all

001=735,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
Then:
I can open .7z.001 files both by pressing Enter and Ctrl+PgDn. And I can unpack the entire set of archives.
I can open .zip.001 files both by pressing Enter and Ctrl+PgDn. But I can NOT unpack the archives.
I can open .rar.001 files both by pressing Enter and Ctrl+PgDn. And I can unpack the entire set of archives.


Instead I can make an Internal association for .001 files with the Open action set to: **7z - for example:

Code: Select all

[Associations]
Filter1=*.001
Filter1_open=**7z
you need:

Code: Select all

[PackerPlugins]
7z=735,%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
for this to work.
Then:
I can open .7z.001 files both by pressing Enter and Ctrl+PgDn. And I can unpack the entire set of archives.
I can open .zip.001 files both by pressing Enter and Ctrl+PgDn. And I can unpack the entire set of archives.
I can open .rar.001 files both by pressing Enter and Ctrl+PgDn. And I can unpack the entire set of archives.


All .7z.XXX .zip.XXX and .rar.XXX and original .7z and .zip were generated with 7zFM.exe. Original .rar file was generated with WinRAR.exe

7zFM.exe version 23.01, WinRAR.exe version 6.24
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [11.03] Error in packed file *.zip.001

Post by *ghisler(Author) »

Multi-volume ZIP files use a different format than just splitting up a larger file. They have special headers, and the offsets stored in "relative offset of local header" are relative to the start of the ZIP file in which the file is stored, not relative to the start of all the parts. There is also a field "disk number start" in the central directory which indicates in which part of the ZIP file the packed file is stored. This is all described in the APPNOTE.TXT coming with the original pkzip, which defined the ZIP standard. All these standard are ignored when splitting an existing ZIP file into parts.

To unpack such a file, use menu "Files" - "Combine Files" to create a valid ZIP file first.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [11.03] Error in packed file *.zip.001

Post by *petermad »

To unpack such a file, use menu "Files" - "Combine Files" to create a valid ZIP file first.
Or use Total7zip and internally associate .001 files to Total7zip as described in the last part of my previous post.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
hanyu
Junior Member
Junior Member
Posts: 5
Joined: 2024-02-23, 02:43 UTC

Re: [11.03] Error in packed file *.zip.001

Post by *hanyu »

2petermad

Yes, that's it! It's working.

Thank you for your solution!!!!!
license #206205 - Han
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [11.03] Error in packed file *.zip.001

Post by *petermad »

Yes, that's it! It's working.
Great. I actually suggest to change the Internal association to:

Code: Select all

[Associations]
Filter1=*.7z.001 *.zip.001 *.rar.001
Filter1_open=**7z
to make it more specific, an not affect other files with an .001 extension.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [11.03] Error in packed file *.zip.001

Post by *ghisler(Author) »

Since these split ZIP files violate the ZIP specifications I, will not change this behaviour.

Moderator message

Moved to will not be changed
Author of Total Commander
https://www.ghisler.com
Post Reply