Bug 482899 - Dolphin can't write to folder with group write access
Summary: Dolphin can't write to folder with group write access
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 24.02.0
Platform: Neon Linux
: NOR major
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: qt6, regression
: 482993 483313 485631 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-03-08 17:28 UTC by S. Christian Collins
Modified: 2024-04-21 09:18 UTC (History)
11 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 S. Christian Collins 2024-03-08 17:28:09 UTC
SUMMARY
In the following examples, the user's login name will be "username".

Dolphin 24.02.0 included with Plasma 6 cannot write to a folder that has group write access and a different owner (e.g., mode 775, "root:username" ownership). This is a regression from Plasma 5 (tested with Dolphin 21.12.3 in Kubuntu). This bug prevents writing to shared folders in VirtualBox, as the shared folders have "root:vboxsf" ownership, where the user being a member of the "vboxsf" group should be able to write to the shared folders.

STEPS TO REPRODUCE
1. Create a folder "testfolder" in your home directory.
2. Change the folder owner while keeping the user's default group (e.g., "sudo chown root:username testfolder"). By default, this should already be file access mode 775 where group members have write access, but change this if it is not.
3. Exit and restart Dolphin (sometimes this is necessary to trigger the bug).
4. Open "testfolder" in Dolphin and try to create or copy a file/folder to this location.

OBSERVED RESULT
Dolphin forbids the user from creating/copying files within "testfolder". Performing the file operations via command line is necessary to write to the folder.

EXPECTED RESULT
Dolphin should recognize group write access to the folder and allow the user to write to the folder.

SOFTWARE/OS VERSIONS
Linux: KDE neon 6.0
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Comment 1 Nicolas Fella 2024-03-09 15:37:12 UTC
*** Bug 482993 has been marked as a duplicate of this bug. ***
Comment 2 Synthetic451 2024-03-13 03:43:59 UTC
Yep, I am seeing this bug on Arch KDE 6.0.1 and Dolphin 24.02.0 as well.

I have a folder with root:users and 775 permissions. My user belongs to the users group and yet can not write in that folder with Dolphin at all.
Comment 3 Paul Worrall 2024-03-15 17:23:11 UTC
I can reproduce this using the steps provided so setting status to confirmed
Dolphin can't create files in testfolder but the file-save dialog in kde apps does allow saving to that folder

Operating System: KaOS (2024) 
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Graphics Platform: Wayland
Comment 4 Nicolas Fella 2024-03-16 14:30:59 UTC
*** Bug 483313 has been marked as a duplicate of this bug. ***
Comment 5 Nicolas Fella 2024-03-16 15:39:41 UTC
This seems to be caused by https://invent.kde.org/frameworks/kio/-/merge_requests/1221
Comment 6 Bug Janitor Service 2024-03-16 15:45:29 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/1581
Comment 7 Felix Ernst 2024-03-27 15:57:52 UTC
I am not sure if this was now fixed by https://invent.kde.org/frameworks/kio/-/commit/8e622280d070df7824baffd684e866c085b56f64.
Comment 8 Andreas Sturmlechner 2024-03-27 16:15:13 UTC
At least for me this was fixed after backporting this (among other) commits.
Comment 9 Felix Ernst 2024-03-27 17:32:30 UTC
Let's consider this fixed then. 🌠

S. Christian Collins, Benjamin Xiao, Paul Worrall, if this bug still persists while using KDE frameworks 6.1 (which will be released by us on Fri April 13, 2024 and then arrive at your door step at a point in time controlled by your distribution), we would be interested in hearing from you.

Good job everyone! :)
Comment 10 S. Christian Collins 2024-04-16 14:13:15 UTC
I can confirm this bug is indeed fixed in Frameworks 6.1. Thank you!
Comment 11 Paul Worrall 2024-04-21 09:18:21 UTC
*** Bug 485631 has been marked as a duplicate of this bug. ***