Archives inside archives and Ctrl+U

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Archives inside archives and Ctrl+U

Post by *MarcinW »

I've found a rare problem with archives inside archives and Ctrl+U. Steps to reproduce:

1) Create archive C:\test1.zip, containing internal1.zip, containing directory dir1, containing file file1.txt and directory dir11 (test1.zip attached below)
2) Create archive C:\test2.zip, containing internal2.zip, containing directory dir2, containing file file2.txt and directory dir22 (test2.zip attached below)
3) In left panel open test1.zip and go deeper and deeper up to the file1.txt.
Now in the current directory header we can see c:\Temp\_tc\internal1.zip\dir1\*.*
4) In right panel open test2.zip and go deeper and deeper up to the file2.txt.
Now in the current directory header we can see c:\Temp\_tc\internal2.zip\dir2\*.*
5) Press Ctrl+U - right and left panel are being swapped
6) Important: we assume, that Temp folder is being located on drive C:

And now try one of the following:

a) Press "c" (drive letter containing Temp folder) drive button above left panel (drive buttons must be ON for both panels), so we go to C:\ in left panel - BUG1
b) Press "d" (any drive letter NOT containing Temp folder) drive button above left panel (drive buttons must be ON for both panels), so we go to D:\ in left panel - BUG2

c) Press Alt+F1 and select "c" (drive letter containing Temp folder), so we go to C:\ in left panel - BUG1
d) Press Alt+F1 and select "d" (any drive letter NOT containing Temp folder), so we go to D:\ in left panel - BUG2

e) Exec "cd c:" (drive letter containing Temp folder) command for left panel, so we go to C:\ in left panel - BUG1
f) Exec "cd d:" (any drive letter NOT containing Temp folder) command for left panel, so we go to D:\ in left panel - BUG2
g) Exec "cd c:\" or "cd d:\" (or any other drive) command for left panel, so we go there in left panel - BUG2

h) Press "\" button above left panel, so we go to C:\ in left panel - BUG2
i) Press "*" button above left panel and select any hotlisted directory (located on C:, D: or any other drive), so we go there in left panel - BUG2

j) Press ".." button above left panel twice - BUG3


BUG1 means that:
we should have
c:\*.* in left panel and c:\Temp\_tc\internal1.zip\dir1\*.* in right panel, but we get
c:\test1.zip\*.* in left panel and c:\test2.zip\*.* in right panel.

BUG2 means that:
- we can't get out from the ZIP directory (dir1)
- we can't get into the ZIP directory (dir11)
- we can't read (F3 or F5) contents of compressed files (file1.txt) - we get "Disk read error"
- if we press Ctrl+U again, after one-two seconds we get into c:\Temp\_tc\ folder instead of internal1.zip file contents
- if we switch to another application and to TC again, we get into test2.zip file contents instead of internal1.zip file contents

BUG3 means that:
we should have
c:\test2.zip\*.* in left panel and c:\Temp\_tc\internal1.zip\dir1\*.* in right panel, but we get
c:\test1.zip\*.* in left panel and c:\test2.zip\*.* in right panel.

All bugs described above have probably the same cause.


Ufff :) Regards!


test1.zip, MIME-encoded:

Code: Select all

MIME-Version: 1.0
Content-Type: application/octet-stream; name="test1.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test1.zip"

UEsDBBQAAgAIAMi5i0HkNsMKfQAAAD0BAAANAAAAaW50ZXJuYWwxLnppcAvwZmYRYWBiYGD4tKHb
kQEJsAJxSmaRoX4AVAkHw4md3Y5PE57PY4dK88GUpGXmpBrqlVSUeJ8+42nKwhAAN7V8O6qp3DAt
IAJkNiOTCANuB0CAAJSGOgemBbuDQICRQQFIKmM4D9k6bC5DWBeG7k5WNpAUMxCuANL1YIUAUEsB
AhQAFAACAAgAyLmLQeQ2wwp9AAAAPQEAAA0AAAAAAAAAAAAgAAAAAAAAAGludGVybmFsMS56aXBQ
SwUGAAAAAAEAAQA7AAAAqAAAAAAA
test2.zip, MIME-encoded:

Code: Select all

MIME-Version: 1.0
Content-Type: application/octet-stream; name="test2.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test2.zip"

UEsDBBQAAgAIAMy5i0Hply1jfQAAAD0BAAANAAAAaW50ZXJuYWwyLnppcAvwZmYRYWBiYGB4t6Hb
kQEJsAJxSmaRkX4AVAkHw+md3Y7xhu/Y2aHSfDAlaZk5qUZ6JRUl3qfPeJoyMQTATZXagWoqN0wL
iACZzcgkwoDbARAgAKWhzoFpwe4gEGBkUACSyhjOQ7YOm8sQ1oWhu5OVDSTFDIQrgHQ9WCEAUEsB
AhQAFAACAAgAzLmLQemXLWN9AAAAPQEAAA0AAAAAAAAAAAAgAAAAAAAAAGludGVybmFsMi56aXBQ
SwUGAAAAAAEAAQA7AAAAqAAAAAAA
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, nested archives are not supported with Ctrl+U.
Author of Total Commander
https://www.ghisler.com
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

Ok, it's rather rare case. Maybe some time in the future. So please disable the Ctrl+U command when inside nested archives.
Post Reply