Bug 355662

Summary: Wrong error message: Access denied to .../Trash/...
Product: [Frameworks and Libraries] frameworks-kio Reporter: sedrubal <kde>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED DUPLICATE    
Severity: minor CC: frank78ac, kde, kdelibs-bugs, nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description sedrubal 2015-11-20 19:43:43 UTC
When trying to delete a folder which you have no rights to delete it, you will see the error message "Access denied to /home/user/.local/share/Trash/files/$folder". But the given directory is wrong: it should be the directory you want to delete

Reproducible: Always

Steps to Reproduce:
1. mkdir foo
2. sudo chown root:root foo
3. Delete this folder as not root

Actual Results:  
Error message: "Access denied to /home/user/.local/share/Trash/files/foo."

Expected Results:  
Error message: "Access denied: /home/user/foo." or "Access denied for deleting /home/user/foo."
Comment 1 Nate Graham 2018-08-22 20:04:08 UTC
Is this still an issue with KDE Frameworks 5.49?
Comment 2 sedrubal 2018-08-27 11:31:38 UTC
I'm running fedora 28 which packages plasma 5.13.4 right now (afaik). Here this bug is still present. You should be able to reproduce the issue yourself by executing the 3 steps I posted above.
Comment 3 Nate Graham 2018-08-27 19:23:06 UTC
Ah, it's a lack of PolicyKit integration. This should be fixed automatically once Bug 179678 is in.

*** This bug has been marked as a duplicate of bug 179678 ***