Bug 444719 - Cannot empty trash in Dolphin: `Unsupported operation detected on trash directory`
Summary: Cannot empty trash in Dolphin: `Unsupported operation detected on trash direc...
Status: REPORTED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Trash (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-31 14:14 UTC by postix
Modified: 2021-10-31 14:15 UTC (History)
2 users (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 postix 2021-10-31 14:14:57 UTC
SUMMARY

I have two disks in the system:
a) System NVMe with BTRFS
b) Data HDD with NTFS

I have deleted many files in Dolphin on the data disk by selecting them and moving them to the trash. 
Finally, I wanted to empty the trash but it stops emptying, showing the the following error:

```
Could not delete file /run/media/user/Data/.Trash-1000/files/Foo/Bar.pdf.
```

and in journalctl says

```
...
Okt 31 14:26:15 gvfsd-trash[11265]: *** Unsupported operation detected on trash directory
Okt 31 14:26:15 gvfsd-trash[11265]:   dir: /run/media/user/Data/.Trash-1000/files/, file: abc, type: 4
                                             
Okt 31 14:26:15 gvfsd-trash[11265]: *** Unsupported operation detected on trash directory
Okt 31 14:26:15 gvfsd-trash[11265]:   dir: /run/media/user/Data/.Trash-1000/files/, file: abc, type: 4
                                             
Okt 31 14:26:15 gvfsd-trash[11265]: *** Unsupported operation detected on trash directory
Okt 31 14:26:15 gvfsd-trash[11265]:   dir: /run/media/user/Data/.Trash-1000/files/, file: Foo, type: 4
                                             
Okt 31 14:26:15 gvfsd-trash[11265]: *** Unsupported operation detected on trash directory
Okt 31 14:26:15  gvfsd-trash[11265]:   dir:/run/media/user/Data/.Trash-1000/files/, file: Foo, type: 4

Okt 31 14:26:15 blackbox kioslave5[11148]: kf.kio.slaves.trash: Removing orphaned file "/home/user/.local/share/Trash/files/201716"
...
```

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20211025
KDE Plasma Version: 5.23.1
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Kernel Version: 5.14.14-1-default (64-bit)