Bug 481597 - Dolphin doesn't update its behavior if the folder permission are changed externally
Summary: Dolphin doesn't update its behavior if the folder permission are changed exte...
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 24.01.95
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: qt6, regression
Depends on:
Blocks:
 
Reported: 2024-02-20 21:11 UTC by Antti Savolainen
Modified: 2024-04-05 16:38 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Savolainen 2024-02-20 21:11:39 UTC
SUMMARY
Demonstrative video: https://youtu.be/vajJ5kUcY3Q
If I change folder permissions of a folder I've already visited from the terminal and then try to create a file inside it, the GUI either doesn't allow me to do things I have permissions for or allows me to start doing things I can't finish.

STEPS TO REPRODUCE
1. Create a folder that is owned by the root
2. Visit that folder
3. Give the user write permission to that folder
4. Attempt to add a file to that folder

OBSERVED RESULT
Dolphin doesn't allow creating a file even though I have permissions to do so

EXPECTED RESULT
Dolphin should allow me to create a file

FURTHER STEPS TO PRODUCE
5. Reopen Dolphin
6. Visit that folder again
7. Remove write permissions to that folder from the user
8. Attempt to add a file to that folder

OBSERVED RESULTS
Right click menu appears as if I could create a file but Dolphin returns "Access denied" after finishing the file creation dialogue

EXPECTED RESULTS
The options to create a file should be greyed out

SOFTWARE/OS VERSIONS
Linux: Arch Linux
KDE Plasma Version: 5.93.0
KDE Frameworks Version: 5.249.0
Qt Version: 6.7.0
Comment 1 Méven Car 2024-04-05 16:38:38 UTC
In KF6 permissions are not refreshed often (isWritable uses cached data since 989e0c40dcb30393aed402cdf98be572fead6ed1 https://invent.kde.org/frameworks/kio/-/merge_requests/1221)
Unfortunately it seems we don't listen properly for IN_ATTRIB inotify modification for folders.

KDirWatch and KDirLister need some cleaning/refactoring IMO.