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 577155 - Wrong file name after restoring from trash
Wrong file name after restoring from trash
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: trash backend
1.2.x
Other Linux
: Normal minor
: ---
Assigned To: Allison Karlitskaya (desrt)
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2009-03-29 02:42 UTC by Andreas Moog
Modified: 2013-01-09 13:18 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26



Description Andreas Moog 2009-03-29 02:42:55 UTC
Reported on Launchpad:
http://bugs.launchpad.net/bugs/350172

To reproduce:

* Create two directories - "dir1" and "dir2";
* In each directory, create a file the same name (ex. "foo.bar")

  The directory structure should look like
dir1/foo.bar
dir2/foo.bar

* Move both files to the trash
  Now the trash contains two files with the same name.

* Restore each file from the trash using "Edit->Restore"

Result:

The name of one of the files is "foo.2.bar", so it looks like
dir1/foo.bar
dir2/foo.2.bar
Comment 1 Felix Möller 2012-07-30 09:00:05 UTC
This can be reproduced with 1.12.1 on Ubuntu 12.04.
Comment 2 Martin Pitt 2013-01-09 13:18:15 UTC
I tested this with gvfs 1.14.2 (on current Ubuntu), and this works fine now. gvfs now also has a test case (test_deletion_with_same_path) which covers this.