Thunar: cut & paste through a symbolic link pointing to the same folder of the origin will cause data loss

Bug #851018 reported by Luca Borrione
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Thunar File Manager
Confirmed
Medium
thunar (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

1) create a folder in your home and a symbolic link pointing to it:
$ mkdir ~/orig
$ ln -sT ~/orig dest

2) create a test file in the original folder:
$ touch ~/orig/test.txt

3) open a Thunar session and go to the original folder *~/orig*, cut the test.txt file using the gui, which simply means right-click on the test.txt file and choose *cut*

4) use Thunar to go to the destination folder *~/dest*, which actually is the symbolic link poiting to the same folder of the original one, right-click and choose *paste*

5) a confirmation window will open ... choose *replace* to go on

6) a new window with an error will open but at this time the original test.txt file is already deleted, so no matter what you choose at this point.

Tested on Lubuntu 10.10 with Thunar 1.0.2

I tried other file mangers (Nautilus Elementary 2.32.2 and PCManFM 0.9.7) always on Lubuntu 10.10 and they are ok (they do not remove the original file)

description: updated
description: updated
description: updated
Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Thanks for your bug report.
I can reproduce with 1.2.2 also. I'll forward it upstream later.

Changed in thunar (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
In , Lionel Le Folgoc (mrpouit) wrote :

The following bug was reported a few days ago on our bugtracker:

1) create a folder in your home and a symbolic link pointing it:
$ mkdir ~/orig
$ ln -sT ~/orig dest

2) create a test file in the original folder:
$ touch ~/orig/test.txt

3) open a Thunar session and go to the original folder *~/orig*, cut the test.txt file using the gui, which simply means right-click on the test.txt file and choose *cut*

4) use Thunar to go to the destination folder *~/dest*, which actually is the symbolic link poiting to the same folder of the original one, right-click and choose *paste*

5) a confirmation window will open ... choose *replace* to go on

6) a new window with an error will open but at this time the original test.txt file is already deleted, so no matter what you choose at this point.

Tested on Lubuntu 10.10 with Thunar 1.0.2

I've been able to reproduce it with thunar 1.2.3 too.
Thanks.

Changed in thunar (Ubuntu):
status: Confirmed → Triaged
description: updated
Revision history for this message
In , Hjudt-l (hjudt-l) wrote :

This is still reproducible with git master.

Also, when doing action history back after the final step, thunar will crash.

Changed in thunar:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
Dgorst (dgorst) wrote :

Same error, but this time caused by cut-and-pasting desktop icons into a subfolder of Desktop.

Revision history for this message
In , mirh (mirh) wrote :

Bump, because putting aside it's always good after years (/s)
Somebody could even take advantage of this situation to check why (when asked of overwriting or not an existing file), you abort cut & paste and "cut" is no longer in memory.

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.