Bug 505295

Summary: Deleting a file over mtp produces a notification with a (failed) preview of the deleted file
Product: [Frameworks and Libraries] kio-extras Reporter: ratijas <me>
Component: MTPAssignee: Unassigned bugs <unassigned-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: elvis.angelaccio, john.kizer
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Notification - Dolphin - mtp deleting

Description ratijas 2025-06-06 22:01:52 UTC
Created attachment 182078 [details]
Notification - Dolphin - mtp deleting

SUMMARY

Use Dolphin app to delete a file from a device connected via mtp:/ protocol. It can't be moved to trash, so it will be immediately wiped. It produces a notification that says "Deleting" and the mtp:/ file path along with a thumbnail and buttons to Open With. The thumbnail has a default icon for the file type and a spinner (BusyIndicator in QML-speak) which for obvious reasons won't finish "loading". The Open With buttons obviously don't work either. 

STEPS TO REPRODUCE
1. Connect a phone
2. Open Dolphin, navigate to the phone over mtp:/ protocol
3. Delete any unimportant file

OBSERVED RESULT
A notification which tries to load a thumbnail for the now-nonexistent file, and the buttons to open it.

EXPECTED RESULT
Thumbnail and buttons are not needed, because the file they refer to is gone. Probably the path shouldn't be a clickable link either, because it can't work.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.1
Kernel Version: 6.14.9-arch1-1 (64-bit)
Graphics Platform: X11
Comment 1 John Kizer 2025-06-18 05:23:17 UTC
Hi - this seems to fall within the scope of an existing issue here, so I'm merging these together for better tracking of the core issue. I was able to reproduce the issue by deleting a multiple GB file over sftp, so the general conditions described there seem to apply.

Thanks!

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