Nautilus is following symbolic links when emptying trash again

Bug #195207 reported by sam tygier
2
Affects Status Importance Assigned to Milestone
gnome-applets (Ubuntu)
Fix Released
High
Ubuntu Desktop Bugs

Bug Description

Binary package hint: nautilus

on hardy up to date as of 20080224 emptying trash follows symlinks.

sam@oberon:~$ mkdir test
sam@oberon:~$ cd test/
sam@oberon:~/test$ mkdir a b
sam@oberon:~/test$ touch a/foo
sam@oberon:~/test$ touch a/bar
sam@oberon:~/test$ touch a/baz
sam@oberon:~/test$ ln -s /home/sam/test/a/ b/link
sam@oberon:~/test$ ls -l a
total 0
-rw-r--r-- 1 sam sam 0 2008-02-24 13:59 bar
-rw-r--r-- 1 sam sam 0 2008-02-24 13:59 baz
-rw-r--r-- 1 sam sam 0 2008-02-24 13:59 foo
sam@oberon:~/test$ ls -l b
total 0
lrwxrwxrwx 1 sam sam 17 2008-02-24 14:00 link -> /home/sam/test/a/
sam@oberon:~/test$ nautilus .
sam@oberon:~/test$ #move b to trash
sam@oberon:~/test$ #empty trash
sam@oberon:~/test$ ls a
sam@oberon:~/test$ ls -a a
. ..

needs to be an absolute (not relative) symlink

this is unexpected and can lead to data loss

A similar bug existed before Bug #188361 , Sebastien Bacher ask me to open a new bug, rather than reopen the old one.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. Using the steps you describe doesn't lead to the bug on my hardy installation and upstream says it works correctly for him too. Do you use a standard local configuration or nfs or something which could make nautilus behaves differently?

Changed in nautilus:
assignee: nobody → desktop-bugs
importance: Undecided → Wishlist
status: New → Incomplete
Revision history for this message
Sebastien Bacher (seb128) wrote :

did you restart your session since you install the new gvfs version too?

Revision history for this message
sam tygier (samtygier) wrote :

i was up to date and booted on the 24th. i dont think i had anything out of the ordinary configuration wise.

now i am testing with the 20080225 amd64 live cd

it occurs if i empty trash by right clicking on the the trash applet and choosing empty trash. it does not occur if i use the empty trash button from a nautilus browser.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Confirmed that's not a nautilus issue though and the new version works correctly

Changed in nautilus:
importance: Wishlist → High
status: Incomplete → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-applets - 2.21.92-0ubuntu1

---------------
gnome-applets (2.21.92-0ubuntu1) hardy; urgency=low

  * New upstream version:
    Trash Applet:
    - move to GIO/gvfs
    - considerable changes. Please watch for bugs. :) (lp: #195207)
    - requires a somewhat up-to-date gvfs install to support
      trash::item-count attribute on trash:/.
  * debian/control.in:
    - updated libglib requirement
  * debian/patches/81_from_bugzilla_trash_applet_use_gio.patch:
    - dropped, the new version uses gio now
  * debian/patches/90_from_svn_correct_weather_location.patch:
    - dropped, the change is in the new version
  * debian/patches/98_autoreconf.patch:
    - new version update

 -- Sebastien Bacher <email address hidden> Tue, 26 Feb 2008 09:27:38 +0100

Changed in gnome-applets:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.