To help to reproduce the problem, I attached below a test.zip file with contents:
test.zip/test1.txt - file with 200 chars '1',
test.zip/test2.txt - file with 200 chars '2'.
Problem 1:
1) Save test.zip to C:\test\test.zip
2) Go to directory C:\test\
3) Press Alt+F7
4) Check "Search archives" option
5) Check "Find text" option and enter text: 111
6) Start searching, so you will see on the result list: C:\test\test.zip/test1.txt
7) Select this result and press F3 just to see file contents - you can see a lot of chars '1'
8) Close Lister
9) Select the result and press "Go to file" button
10) Delete file test1.txt inside archive
11) Press Alt+F7 again
12) Select on the result list: C:\test\test.zip/test1.txt
13) Press F3 - now you will see a lot of chars '2' instead of '1' - contents of test2.txt will be shown instead of test1.txt
Problem 2:
1, 2, 3, 4) As above
5) Check "Find text" option and enter text: 222
6) Start searching, so you will see on the result list: C:\test\test.zip/test2.txt
7) Select this result and press F3 just to see file contents - you can see a lot of chars '2'
8) Close Lister
9) Select the result and press "Go to file" button
10) Delete file test2.txt inside archive
11) Press Alt+F7 again
12) Select on the result list: C:\test\test.zip/test2.txt
13) Press F3 - now you will see an error message: "Error in packed file C:\test\test.zip" (but test.zip is a valid ZIP file)
After pressing F3, TC probably uses - instead of name and path of the packed file - an internal index of this file inside an archive. When archive structure changes, this index may point to another file or to a non-existent file.
I haven't checked other than ZIP archive formats, but it's probable that this problem affects also them.
Regards
Code: Select all
MIME-Version: 1.0
Content-Type: application/octet-stream; name="test.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.zip"
UEsDBBQAAgAIAEcuV0M4jUmDBgAAAMgAAAAJAAAAdGVzdDEudHh0MzQcHgAAUEsDBBQAAgAIAFEu
V0OKn9KHBgAAAMgAAAAJAAAAdGVzdDIudHh0MzIaHgAAUEsBAhQAFAACAAgARy5XQziNSYMGAAAA
yAAAAAkAAAAAAAAAAQAgAAAAAAAAAHRlc3QxLnR4dFBLAQIUABQAAgAIAFEuV0OKn9KHBgAAAMgA
AAAJAAAAAAAAAAEAIAAAAC0AAAB0ZXN0Mi50eHRQSwUGAAAAAAIAAgBuAAAAWgAAAAAA