After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 128095 - Duplicate can DELETE files in original folder !!!
Duplicate can DELETE files in original folder !!!
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: File and Folder Operations
2.4.x
Other Linux
: Urgent critical
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 95302 133081 144332 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-11-28 08:18 UTC by Nikola
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: 2.6.next
GNOME version: ---


Attachments
Proposed Patch (1013 bytes, patch)
2003-12-28 12:19 UTC, Martin Wehner
none Details | Review

Description Nikola 2003-11-28 08:18:30 UTC
Description of Problem:


Steps to reproduce the problem:
1. in Nautilus file manager - right click on some
big folder(very important) 
2. click on Duplicate
3. click Cancel as fast as posible - before it
start to actually copy files
4. there is new window which DELETE files from
folder which one actually wanted to DUPLICATE

Actual Results:
DELETED data


Expected Results:
DUPLICATED data

How often does this happen? 
Every time in described conditions

Additional Information:
Comment 1 Andrew Sobala 2003-12-04 16:01:10 UTC
I'm not seeing this. What version of GNOME is this?
Comment 2 Nikola 2003-12-05 12:53:43 UTC
- OS is RedHat 9.0 Linux and the version of Nautilus is 2.2.1

- Duplicate in Nautilus works fine for 
> smaller and not-so-big directories (less than few 100MBytes).

- Try to click on Duplicate on some directory with about 1GB of data ->
> after that there is window with the message Preparing for copy...
> now try to click Cancel (during this message)
> after that, there is Delete window which deletes files...

- the same thing was happened with Nautilus 2.0.x in Mandrake 9.0 Linux
Comment 3 Nikola 2003-12-05 14:47:15 UTC
I tried with Copy - Paste function with directory about 500MB the same
thing was happened...
Comment 4 Matthew Gatto 2003-12-10 18:12:29 UTC
I can't reproduce on nautilus 2.4.X using a 1.1GB folder, in fact I
don't ever see a "Preparing for copy..." dialog. Can you reproduce
this on 2.4? Changing Status -> Reopened.
Comment 5 Nikola 2003-12-18 12:49:02 UTC
I've installed Mandrake 9.2 which has Nautilus 2.4.0 and I've tested with 
copy of /usr directory and the same thing happened.

Additionally with upgrade to Nautilus 2.4.1 the same thing happened.

More explanations:

First 
- everithing is tested on P4 Celeron 1.7GHz and 384 RAM and 40GB HDD
with RedHat9.0, Mandrake9.0 and Mandrake9.2

second - try this
- do copy /usr directory but don't click cancel while is on Preparing
to Copy (yes, I saw Preparing to Copy message) 
- when full copy is done try to copy this /usr (copy) directory and
click on Cancel during Prepare to Copy message -> wait and you will
see Deleting window
Comment 6 Matthew Gatto 2003-12-21 05:22:14 UTC
Confirmed on Gentoo in Nautilus 2.4.1. Pretty Nasty. It will go
through and completely delete the original folder. Adding GNOMEVER2.4
to Keywords.
Comment 7 Martin Wehner 2003-12-28 12:15:40 UTC
During the setup of the transfer Nautilus gets progress info from vfs
where the target still equals the source name because the name
conflict resolution hasn't taken place yet.
So when you cancel at that point, Nautilus concludes it wasn't
finished copying the source dir to itself and nukes it as incomplete
copy. Doh. To reproduce it easily, set SHOW_TIMEOUT in the progress
dialog to 0 to make it pop up immediately.
Comment 8 Martin Wehner 2003-12-28 12:19:53 UTC
Created attachment 22746 [details] [review]
Proposed Patch
Comment 9 Martin Wehner 2003-12-28 12:40:38 UTC
This patch adds a check to ensure that the source tree isn't deleted
by accident.
Comment 10 Andrew Sobala 2003-12-28 14:38:45 UTC
Martin,

Please remember to post this to nautilus-list so that the patch gets
reviewed.

Many thanks.
Comment 11 Martin Wehner 2004-01-02 08:41:41 UTC
Committed to both branches today -> Marking FIXED.

Nikola, thanks for catching this and providing such detailed info.
Comment 12 Martin Wehner 2004-01-05 23:05:27 UTC
*** Bug 95302 has been marked as a duplicate of this bug. ***
Comment 13 Martin Wehner 2004-02-01 21:57:02 UTC
*** Bug 133081 has been marked as a duplicate of this bug. ***
Comment 14 Alexander Larsson 2004-06-17 07:28:54 UTC
*** Bug 144332 has been marked as a duplicate of this bug. ***