| Summary: | Unexpected Trash behavior on NFS with all_squash and Mismatched UIDs | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | Oliver Schramm <oliver.schramm97> |
| Component: | Trash | Assignee: | KIO Bugs <kio-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | kdelibs-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/frameworks/kio/-/commit/8a0d9b64849115dd40ac20b3f20d9ff645a32e71 | Version Fixed/Implemented In: | 6.20 |
| Sentry Crash Report: | |||
|
Description
Oliver Schramm
2025-07-08 11:58:06 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/2044 Git commit 8a0d9b64849115dd40ac20b3f20d9ff645a32e71 by Oliver Schramm. Committed on 04/11/2025 at 20:20. Pushed by meven into branch 'master'. trashimpl: better determine trashForMountPoint for network file systems With uid mapping the local userid and remote userid might not match; if permissions are checked by ownership, KIO won't consider a trash directory even if it is writable. This forced a fallback to the home trash which could mean moving a file over a network, which is catastrophic for huge file sizes. To fix this, instead of checking ownership and mode bits, use access() which correctly queries the VFS for permission. Signed-off-by: Oliver Schramm <oliver.schramm97@gmail.com> M +8 -8 src/kioworkers/trash/trashimpl.cpp https://invent.kde.org/frameworks/kio/-/commit/8a0d9b64849115dd40ac20b3f20d9ff645a32e71 |