Bug 200735 - Moving Desktop Link To Waste, Deletes Contents of Proper Folder
Summary: Moving Desktop Link To Waste, Deletes Contents of Proper Folder
Status: RESOLVED WORKSFORME
Alias: None
Product: unknown
Classification: Bugzilla Internals
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-19 07:16 UTC by e8
Modified: 2009-08-17 13:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description e8 2009-07-19 07:16:26 UTC
Version:            (using KDE 4.2.96)
Compiler:          Main repo using default compiler. ?
OS:                Linux
Installed from:    Ubuntu Packages

Moving desktop-link to the waste-bin, deletes the contents of the proper folder that was linked to.  There is no way to recover the files on the face of the problem.  Only one item remains in the waste-bin after the action, that is the symbolic-link. Restoring the item in the waste-bin does not recover files, only the link.

System is totally updated using main repository, as of 18 July, 2009.

K Desktop Environment = Version 4.2.96 (KDE 4.2.96 (KDE 4.3 RC2))
Comment 1 FiNeX 2009-07-19 12:38:25 UTC
What do you exactly mean with "desktop-link"? the link of the "Dekstop" folder (~/Desktop) or any link placed on the KDE desktop?

From where did you moved the "desktop-link"? Did you use dolphin?
Comment 2 e8 2009-07-19 13:09:37 UTC
(In reply to comment #1)
> What do you exactly mean with "desktop-link"? the link of the "Desktop" folder
> (~/Desktop) or any link placed on the KDE desktop?
> 
> From where did you moved the "desktop-link"? Did you use dolphin?

A link to a folder, on the desktop.  Yes, using Dolphin as file browser, but does that have any play on the desktop icons/files/links when deleting.

Scenario : I create a link to a folder on the desktop on KDE4.  It's a symbolic link.  Now I get an error if I try to delete the link created, but I can right-mouse-menu and choose 'Move to Trash'.  If I move the link to the trash then it will delete the entire contents of the link-to folder, but the trash only contains the symbolic link.  there doesn't seem to be any way to recover the files lost out of the true folder.
Comment 3 e8 2009-07-21 08:50:54 UTC
I consider this a serious bug as critical files can be lost out of simply getting rid of a desktop folder link.
Comment 4 FiNeX 2009-07-21 11:11:40 UTC
I've done the following steps
0) Configured plasma desktop with "folder view containment"
1) Started dolphin
2) Created a test directory on /tmp/test (with dolhin)
3) Added some test files on /tmp/test
4) From dolphin I've created the symbolic link of /tmp/test on my desktop folder. I've called the link ~/Desktop/test

--> on the desktop the link appears

5) Right click on the "test" link on the desktop -> move to trash

--> the link has been moved to the trash, but /tmp/test (and its contents) were still on the right place

6) Emptied the trashcan

-> the link has been really deleted, but the linked folder has not been deleted.

It looks like I'm not able to reproduce the bug. Am I doing something different from you? 



P.S: 'm using KDE trunk r999148 with Qt 4.5.2.
Comment 5 e8 2009-07-21 11:49:42 UTC
(In reply to comment #4)
> I've done the following steps
> 0) Configured plasma desktop with "folder view containment"
> 1) Started dolphin
> 2) Created a test directory on /tmp/test (with dolhin)
> 3) Added some test files on /tmp/test
> 4) From dolphin I've created the symbolic link of /tmp/test on my desktop
> folder. I've called the link ~/Desktop/test
> 
> --> on the desktop the link appears
> 
> 5) Right click on the "test" link on the desktop -> move to trash
> 
> --> the link has been moved to the trash, but /tmp/test (and its contents) were
> still on the right place
> 
> 6) Emptied the trashcan
> 
> -> the link has been really deleted, but the linked folder has not been
> deleted.
> 
> It looks like I'm not able to reproduce the bug. Am I doing something different
> from you? 
> 
> 
> 
> P.S: I'm using KDE trunk r999148 with Qt 4.5.2.

I performed your steps and it worked.  I then tried the same steps I did which differs from putting the folder in user home dir, and using the mouse middle button to drag a link to the desktop.  It crashed with a dialogue when trying to delete and then it caused a kde restart with a kdeinit error or some term like that, also it included an error report request, to which I did.  Then I tried the steps again and it works!  I must have had a corrupt config table or something.

Strange issue.  I hope it doesn't happen again as I originally lost a directory of content.

Cheers and thanks for your time in looking at the issue!
Comment 6 FiNeX 2009-08-17 13:55:53 UTC
Ok, thanks.