[TC 11.51rc4] Internal associations: Overriding opening of archives doesn't work if archive is not recognized as archive

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
white
Power Member
Power Member
Posts: 5743
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

[TC 11.51rc4] Internal associations: Overriding opening of archives doesn't work if archive is not recognized as archive

Post by *white »

HISTORY.TXT wrote: 04.02.25 Fixed: Couldn't override opening of archives via internal associations. To not break existing associations, the extension must be explicitly put in the search string, e.g. *.zip *.rar, and it can only be redefined with ***command (32/64)
This looks more like an added feature than a fix. Wouldn't it be better to use "Added:" here instead of "Fixed:"?

* Create an internal association for: *.zip *.tbr *.gz *.tgz *.7z *.rar *.arj *.lzh
* Define the Open command as: ***cm_list
* Create a test file containing the text "123". Copy this file to files with above mentioned filename extensions.
* Try to open each file in TC.

The .zip and .tbr files are opened with Lister. The other files are not and an error is shown saying: "Error in packed file".
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50383
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.51rc4] Internal associations: Overriding opening of archives doesn't work if archive is not recognized as arc

Post by *ghisler(Author) »

This looks more like an added feature than a fix. Wouldn't it be better to use "Added:" here instead of "Fixed:"?
No, it's clearly a bug that you can't override archive associations.
The .zip and .tbr files are opened with Lister. The other files are not and an error is shown saying: "Error in packed file".
You are right, there is an additional check whether the file is a valid archive after where it checks for internal associations. I will skip it when there is an internal association.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50383
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.51rc4] Internal associations: Overriding opening of archives doesn't work if archive is not recognized as arc

Post by *ghisler(Author) »

This should be fixed in RC5, please test!
10.02.25 Fixed: Overriding opening of archives via internal associations didn't work for all archive types if the archive was invalid (32/64)
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 5743
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.51rc4] Internal associations: Overriding opening of archives doesn't work if archive is not recognized as arc

Post by *white »

Tested OK using TC 11.51rc5 32-bit and 64-bit.

Moderator message from: white » 2025-02-12, 14:25 UTC

Moved topic
» from TC11.x bug reports (English) to TC Fixed bugs
Post Reply