Bug 184403 - copying file from folder view to a filemanager running as root gives error
Summary: copying file from folder view to a filemanager running as root gives error
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Plasma
Component: widget-folderview (show other bugs)
Version: unspecified
Platform: Mandriva RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-15 15:31 UTC by AleX
Modified: 2009-04-23 21:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description AleX 2009-02-15 15:31:48 UTC
Version:            (using KDE 4.2.0)
OS:                Linux
Installed from:    Mandriva RPMs

When copying a file from desktop folderview to a filemanager that is executed as root, you get an error saying that /root/Desktop/... doesn't exist.

Steps to reproduce:

- Open a filemanager as root (I only tested Konqueror)
- Copy a file in desktop folderview
- Paste it in the filemanager.
Comment 1 aapgorilla 2009-03-02 17:12:07 UTC
confirmed mdv cooker kde4.2.1, I am pretty sure this was possible at least at the time of mandriva 2009.1 alfa2
Comment 2 aapgorilla 2009-03-02 17:13:55 UTC
btw the bug is also present when using dolphin
Comment 3 David Faure 2009-04-22 00:05:28 UTC
SVN commit 957388 by dfaure:

Prefer most-local-urls in the drag object, rather than kde- (and user-!) specific urls.
Fixes copying files from folderview to a filemanager running as root.
This fix will be in 4.2.3.
BUG: 184403


 M  +9 -9      kdirmodel.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=957388
Comment 4 David Faure 2009-04-23 21:05:21 UTC
SVN commit 958312 by dfaure:

Better fix for 184403 (copying from desktop:/ to a filemanager running as root), which doesn't break moving icons in folderview:
- revert to exporting both kinds of urls in kdirmodel.
- at decoding time, add an option for which kind of url is preferred.
This allows the code that is actually going to call KIO (i.e. KonqOperations, next commit), to use local urls, but not other code.
CCBUG: 184403


 M  +18 -8     kdecore/io/kurl.cpp  
 M  +38 -0     kdecore/io/kurl.h  
 M  +9 -3      kdecore/tests/kurlmimetest.cpp  
 M  +2 -1      kdecore/tests/kurlmimetest.h  
 M  +7 -4      kio/kio/kdirmodel.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=958312
Comment 5 David Faure 2009-04-23 21:08:31 UTC
SVN commit 958315 by dfaure:

Prefer local urls if possible, to avoid problems with desktop:/ urls from other users.
CCBUG: 184403


 M  +5 -0      dolphin/src/dolphinview.cpp  
 M  +8 -3      dolphin/src/treeviewcontextmenu.cpp  
 M  +6 -1      lib/konq/konq_operations.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=958315