Some buggy zip-file, inside which can't go to file from search results and can't calc space with Space

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
ter
Junior Member
Junior Member
Posts: 23
Joined: 2024-07-22, 16:33 UTC

Some buggy zip-file, inside which can't go to file from search results and can't calc space with Space

Post by *ter »

Some buggy zip-file, inside which can't go to file from search results (search in archive) and can't calc space with Space

https://drive.google.com/file/d/1uGbI-_UBuCeRPVrc-H-UCf28rUcywr16/view?usp=sharing

Note that zip file contains some file names (con, aux) reserved by Windows.
User avatar
white
Power Member
Power Member
Posts: 5969
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Some buggy zip-file, inside which can't go to file from search results and can't calc space with Space

Post by *white »

ter wrote: 2024-08-09, 10:28 UTC Note that zip file contains some file names (con, aux) reserved by Windows.
Note that the zip file contains paths with a leading slash, which is not in accordance with the zip specification.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50824
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Some buggy zip-file, inside which can't go to file from search results and can't calc space with Space

Post by *ghisler(Author) »

It's not buggy, TC just removes the starting slash for security reasons, so unpacking wouldn't overwrite system files via absolute path.
But since the paths no longer match, functions like calculating space don't work.
Author of Total Commander
https://www.ghisler.com
ter
Junior Member
Junior Member
Posts: 23
Joined: 2024-07-22, 16:33 UTC

Re: Some buggy zip-file, inside which can't go to file from search results and can't calc space with Space

Post by *ter »

Why can it browse and search in archives, but can't go from search results to a file? No big deal to check a path with a slash.
So with searching it does not remove slash? Path is no longer match with what? So when you browse the archive, the paths match and you can see the files, but when you calculate the space they are not?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50824
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Some buggy zip-file, inside which can't go to file from search results and can't calc space with Space

Post by *ghisler(Author) »

I simply didn't implement any handling of these cut paths when calculating the space - they are not found automatically.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50824
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Some buggy zip-file, inside which can't go to file from search results and can't calc space with Space

Post by *ghisler(Author) »

This should be fixed in Total Commander 11.50 beta 1, please check it!
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 5969
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Some buggy zip-file, inside which can't go to file from search results and can't calc space with Space

Post by *white »

ter wrote: 2024-08-09, 10:28 UTC Some buggy zip-file, inside which can't go to file from search results (search in archive) and can't calc space with Space
ghisler(Author) wrote: 2024-10-09, 14:18 UTC This should be fixed in Total Commander 11.50 beta 1, please check it!
HISTORY.TXT wrote:18.08.24 Fixed: Calculate subdirectory sizes with Alt+Shift+Enter didn't work in archives where the names were stored with leading slashes or drives (32/64)
Tested OK using TC 11.50b1 32-bit and 64-bit, but you fixed only one 1 of 2 reported things.
The report was about that the "Go to file" button does not work in the search results when searching inside the archive (you did not seem to understand this), and when browsing the archive, pressing Space doesn't work (this works now, although not mentioned in HISTORY.TXT).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50824
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Some buggy zip-file, inside which can't go to file from search results and can't calc space with Space

Post by *ghisler(Author) »

Pressing SPACE does the same as Alt+Shift+Enter, just for one folder only.

Unfortunately the "Go to file" button cannot be made to work due to the name mismatch.

Moderator message

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