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 337714 - Trash does not work with NFSv4
Trash does not work with NFSv4
Status: RESOLVED WONTFIX
Product: gnome-vfs
Classification: Deprecated
Component: Other
2.14.x
Other All
: Normal normal
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
: 368059 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-04-08 14:31 UTC by ANTHONY MESSINA
Modified: 2008-09-06 19:10 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
NFSv4 support fixes handling of Trash in Nautilus on NFS /home (John Goerzen) (1.44 KB, patch)
2007-02-09 20:24 UTC, Loïc Minier
none Details | Review

Description ANTHONY MESSINA 2006-04-08 14:31:48 UTC
Please describe the problem:
When moving an item to trash on an NFSv4 mounted filesystem (such as /home), the
trash icon does not change to show that it contains items; opening the "trash:"
folder does not show contents; "Empty Trash function is either grayed out, or
does not remove the file.

However, if you migrate to the "/home/username/.Trash" directory, you can see
the item, manually delete it, and Gnome will present you with the "Do you want
to delete this item from Trash" popup.

If i remount the filesystem with NFSv3, Trash works as expected.

Steps to reproduce:
1. Mount your home directory with NFSv4
2. Take any file and move it to trash
3. Open the Gnome Trash folder


Actual results:
The trash icon does not change to show that it contains items; opening the
"trash:" folder does not show contents; "Empty Trash function is either grayed
out, or does not remove the file.

However, if you migrate to the "/home/username/.Trash" directory, you can see
the item, manually delete it, and Gnome will present you with the "Do you want
to delete this item from Trash" popup.

Expected results:
I expect that the trash icon will change to show that there are items in trash
and that I could empty the trash folder by using the "Empty Trash" function
whether the system is mounted in NFSv3 or NFSv4.

Does this happen every time?
It happens every time with NFSv4.  It never happens with NFSv3.

Other information:
Comment 1 Vincent Untz 2006-04-15 06:40:43 UTC
Looks like some file monitoring issue? Not sure if it should work on NFS. Nautilus people will know better than me.
Comment 2 ANTHONY MESSINA 2006-04-16 04:25:29 UTC
Seeing as mounting /home directories via NFS is fairly standard, I would expect that the Nautilus "Trash" services should be available regardless of wich NFS protocol version is in place.
Comment 3 ANTHONY MESSINA 2006-04-19 08:48:22 UTC
The problem continues to occur with gnome 2.14.1
Comment 4 ANTHONY MESSINA 2006-05-26 00:15:54 UTC
Are there any reports or activity for this bug.  It continues...
Comment 5 ANTHONY MESSINA 2006-08-29 07:44:24 UTC
The bug continues with Gnome 2.14.3 on Fedora Core 5.
Comment 6 Götz Waschk 2006-09-06 11:42:55 UTC
I have a similar problem with an AFS-mounted home and GNOME 2.2 on RHEL3. If I delete a file in the home with "move to trash" using nautilus, the file is moved to ~/.Trash but it is not visible in the trash view of nautilus.
Comment 7 Teppo Turtiainen 2007-01-19 20:28:10 UTC
*** Bug 368059 has been marked as a duplicate of this bug. ***
Comment 8 ANTHONY MESSINA 2007-01-19 20:31:31 UTC
The status of this bug has not improved since 2.14.  Are there any updates?
Comment 9 Loïc Minier 2007-02-09 20:18:29 UTC
It seems this is due to gnome-vfs, not to nautilus, as John Goerzen pointed out in Debian bug http://bugs.debian.org/403129.  I'll attach his patch.
Comment 10 Loïc Minier 2007-02-09 20:24:48 UTC
Created attachment 82244 [details] [review]
NFSv4 support fixes handling of Trash in Nautilus on NFS /home (John Goerzen)

Here's the patch from John Goerzen sent in Debian bug http://bugs.debian.org/403129
Comment 11 Götz Waschk 2007-02-09 20:26:34 UTC
John's patch at the Debian bug might fix this problem for NFS4 but not for AFS or other future file systems GNOME doesn't know about. A more general fix would be useful.
Comment 12 André Klapper 2008-09-06 19:10:47 UTC
gnome-vfs has been deprecated and superseded by gio/gvfs since GNOME 2.22, hence mass-closing many of the gnome-vfs requests/bug reports. This means that gnome-vfs is NOT actively maintained anymore, however patches are still welcome.

If your reported issue is still valid for gio/gvfs, please feel free to file a bug report against glib/gio or gvfs.

@Bugzilla mail recipients: query for gnome-vfs-mass-close to get rid of these notification emails all together.


General further information: http://en.wikipedia.org/wiki/GVFS 
Reasons behind this decision are listed at http://www.mail-archive.com/gnome-vfs-list@gnome.org/msg00899.html