Bug 444719

Summary: Cannot empty trash in Dolphin: `Unsupported operation detected on trash directory`
Product: [Frameworks and Libraries] frameworks-kio Reporter: postix <postix>
Component: TrashAssignee: KIO Bugs <kio-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kdelibs-bugs-null, postix
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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)