File Deleting Bug in RAR unpacking

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
bwh
Junior Member
Junior Member
Posts: 12
Joined: 2006-05-30, 08:27 UTC

File Deleting Bug in RAR unpacking

Post by *bwh »

Hello,

I need to report a reproducible bug that deletes files without a confirmation possibly causing serious data loss.

I have come across this bug while extracting some .rar files.

Steps to re-produce:
1- Create a multipart rar in target window
2- Switch to target window and extract the multipart archive
3- TC will ask whether to overwrite or not
4- Hitting Escape or clicking cancel will give the error in the screenshot and delete the file on the target window (hitting skip does not cause this)

The same does not happen when using a single rar.

I did the above several times to find the rar files that I've already extracted and whenever I saw "overwrite?" I knew this rar was eaerlier extracted, so safe to delete... Only to realize later that their earlier extracted counterparts got lost due to this bug.


Regards,

Screenshot:Screenshot:
http://img256.imageshack.us/i/bugd.png/
Last edited by bwh on 2009-11-03, 23:43 UTC, edited 1 time in total.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I will check that, thanks.
Author of Total Commander
https://www.ghisler.com
bwh
Junior Member
Junior Member
Posts: 12
Joined: 2006-05-30, 08:27 UTC

Post by *bwh »

Hi Christian,

I just realized I forgot to mention I have WinRAR as rar handler in packer settings (if its any help).

Thanks for your time and efforts
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You mean unpacking via external packer?
Author of Total Commander
https://www.ghisler.com
bwh
Junior Member
Junior Member
Posts: 12
Joined: 2006-05-30, 08:27 UTC

Post by *bwh »

ghisler(Author) wrote:You mean unpacking via external packer?
I just hit Alt+F9 to unpack, but my settings in Configuration->Packer-> are as follows:
Rar Packer: (path to winrar.exe here)
and use internal un-RAR if possible is checked.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

use internal un-RAR if possible is checked
But then the file should be unpacked by Total Commander internally (no "Background" button available), right?
Author of Total Commander
https://www.ghisler.com
bwh
Junior Member
Junior Member
Posts: 12
Joined: 2006-05-30, 08:27 UTC

Post by *bwh »

ghisler(Author) wrote:
use internal un-RAR if possible is checked
But then the file should be unpacked by Total Commander internally (no "Background" button available), right?
Yeah, you can check the screenshot above, there is only Pause and Cancel (I hope I'm not stupidly skipping something crucial and end up embarrasing myself for stealing your time :lol: )
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have checked it now - it seems that the file is kept when you click "OK", and it's deleted when you click "Cancel". I will try to find a solution.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Can someone test this error with TC 7.55 beta, please?
Author of Total Commander
https://www.ghisler.com
bwh
Junior Member
Junior Member
Posts: 12
Joined: 2006-05-30, 08:27 UTC

Post by *bwh »

ghisler(Author) wrote:Can someone test this error with TC 7.55 beta, please?
Yay! seems to be fixed...Thanks!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Great, thanks very much!
Author of Total Commander
https://www.ghisler.com
bwh
Junior Member
Junior Member
Posts: 12
Joined: 2006-05-30, 08:27 UTC

Post by *bwh »

I don't mean to be a nuisance, but I can imagine a scenario where the following happens.

Let's assume, I have 5 different multi-part archives, each consisting of 3 parts for easiness' sake. I wildcard select with
NumPad+, input *.part1.rar as mask then hit Alt+F9.

Depending on target's existence, I'm given an "overwrite" window...I can either skip or skip all. Will a "skip this archive" button be beneficial? It would allow me to "skip all" that archive and will ask for each archive in the initial selected queue.

I don't know how clear I can draw the picture, and I'm not at all sure this is a necessary thing. Just a thought :)
Post Reply