| Summary: | Dolphin allows renaming files that you do not have permissions to on an sftp connection | ||
|---|---|---|---|
| Product: | [Applications] dolphin | Reporter: | Antti Savolainen <antti.savo> |
| Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
| Status: | CONFIRMED --- | ||
| Severity: | normal | CC: | dolphin-bugs-null, meven29 |
| Priority: | NOR | ||
| Version First Reported In: | 23.04.3 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Antti Savolainen
2023-08-08 18:36:45 UTC
Technical explanation: We KFileItemListProperties::supportsMoving to determine if files can be renamed, but this does support the !local path of sftp:// protocol. Adding this support there would mean adding a synchronous KIO::stat for a remote target, which can block the UI. On the other hand Dolphin has a cache of the file hierarchy in its model, that could be used to determine this. I tested to verify this. Renaming is still available in the context menu but the name no longer sticks after dolphin returns a permission error. |