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 95302 - Dangerous behavior when moving the icon for a partition mounted in home dir
Dangerous behavior when moving the icon for a partition mounted in home dir
Status: RESOLVED DUPLICATE of bug 128095
Product: nautilus
Classification: Core
Component: File and Folder Operations
unspecified
Other Linux
: High critical
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2002-10-09 15:39 UTC by Abe Fettig
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.0



Description Abe Fettig 2002-10-09 15:39:37 UTC
Description of Problem:

I keep all my important files on a separate disk
partition from my main
linux install, so that I can access them from
other operating systems. 
When in linux, this partition is mounted off my
home directory, at
/home/abe/files.

Yesterday I went to rearrange some of the icons on
my desktop (I'm using
the "home directory on the desktop option), and I
dragged the "files"
icon to another part of the screen.  To my
surprise, Nautilus popped up
the "copying files" dialog.  I thought that maybe
I'd dropped the icon
on another folder instead, so I hit cancel.  After
a couple of seconds,
the "copying files" dialog dissapeared, and a
"deleting files" dialog
popped up intstead.  That seemed strange, but I
assumed it was just
removing the copies it had started to make. 
However, after a few
seconds, I realized it was deleting all the files
in my original "files"
folder!!!

Of course I quickly hit cancel, and it stopped
deleting.  But seeing my
most important files dissapearing (yes, I have a
backup, but it's a few
days old and I've done some work since then) was
very scary.  As far as
I can tell this bug is caused by the convergence
of desktop-as-home-dir
and the way Nautilus handles seperate partitions. 
Rather than just
moving the icon, Nautilus actually wanted to start
copying files, and
then it seemed to think the original source
directory was the target
directory and that it needed to be cleaned up.

Steps to reproduce the problem:
1. Use home dir as desktop
2. Mount a partition in your home dir
3. Try to move the icon for the mounted partition

Actual Results:
Nautilus tries to make a copy of the directory; if
the copy is cancelled, it deletes the _original_
directory

Expected Results:
The icon should be moved without affecting the
underlying filesystem.

How often does this happen? 
Twice, and now I'm afraid  to try it again ;-)

Additional Information:
Comment 1 Mark Finlay 2003-01-28 21:17:37 UTC
Did you actually check that any of the origional files were
deleted. I suspect that nautilus was deleting the files it
had started copying. That would make this a dupe of bug 61269.

I'm going to try to reproduce this with some unimportant files
and if I cannot I'll mark as a dupe.
Comment 2 Abe Fettig 2003-01-30 18:10:20 UTC
I'm pretty sure the files were being deleted.  But since then I've
switched to using a single partition for everything, so I can't do a
test to verify it.  In any case, the core problem is that Nautilus
thinks that dragging an icon == moving a folder.  If bug 61269 gets
fixed I think you wouldn't have to worry about this.
Comment 3 Kjartan Maraas 2003-10-31 16:34:47 UTC
Has this changed in later releases?
Comment 4 Martin Wehner 2004-01-05 23:05:29 UTC

*** This bug has been marked as a duplicate of 128095 ***