Bug 490500

Summary: "Access denied to trash:/...." error when trying to delete a file from a mtp device by pressing del key
Product: [Frameworks and Libraries] frameworks-kio Reporter: Patrick Silva <bugseforuns>
Component: TrashAssignee: KIO Bugs <kio-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kdelibs-bugs-null, nicolas.fella
Priority: NOR    
Version First Reported In: 6.4.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot

Description Patrick Silva 2024-07-19 13:57:56 UTC
STEPS TO REPRODUCE
1. connect an android phone to usb port
2. activate file transfer in android phone
3. open Dolphin
4. open a picture stored in android phone with gwenview
5. try to delete the picture by pressing del key

OBSERVED RESULT
error message seen in the attached screenshot

EXPECTED RESULT
when I try to delete the picture directly via Dolphin by pressing del key, it offers to delete the file permanently.
Gwenview should behavior in the same way.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Graphics Platform: Wayland
Comment 1 Patrick Silva 2024-07-19 13:58:38 UTC
Created attachment 171786 [details]
screenshot
Comment 2 Nicolas Fella 2024-07-26 15:22:01 UTC
This boils down to the trash KIO worker not implementing put(), so trashing things from remove file systems cannot work.

Dolphin just doesn't offer moving files to trash (only deleting), so there it isn't noticeable.

Gwenview could do the same, but I don't see why we couldn't have trash for remote files in principle