Bug 429043 - Dolphin ignores the default ACL of a destination folder when copying/moving files
Summary: Dolphin ignores the default ACL of a destination folder when copying/moving f...
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.70.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-13 06:21 UTC by Yar4e
Modified: 2021-11-30 12:48 UTC (History)
3 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 Yar4e 2020-11-13 06:21:34 UTC
Dolphin ignores the default ACL of a destination folder when copying/moving files and preserves ACL of a source file.

STEPS TO REPRODUCE
1. Make sure that the ACL is enabled for the test mount point(/home for example) and you have two test users in the system (user1 and user2 for example).

2. Create two test directories test1 and test2:
mkdir /home/username/test1
mkdir /home/username/test2

3. Set ACL for directories:
setfacl -m d:u:user1:rwx /home/username/test*
setfacl -m u:user1:rwx /home/username/test*
setfacl -m d:u:user2:rwx /home/username/test2
setfacl -m u:user2:rwx /home/username/test2

4. Create empty file in test2 directory and verify the ACL it received:
touch /home/username/test2/testfile
getfacl /home/username/test2/testfile
# file: home/username/test2/testfile
# owner: user1
# group: user1
user::rw-
user:user1:rwx                  #effective:rw-
user:user2:rwx                  #effective:rw-
group::r-x                      #effective:r--
mask::rw-
other::r--

5. Use Dolphin to copy or move this testfile to the test1 directory and verify the ACL it received:
getfacl /home/username/test1/testfile
# file: home/username/test1/testfile
# owner: user1
# group: user1
user::rw-
user:user1:rwx                  #effective:rw-
user:user2:rwx                  #effective:rw-
group::r-x                      #effective:r--
mask::rw-
other::r--

OBSERVED RESULT
File testfile preserves its ACL.


EXPECTED RESULT
File testfile get default ACL from test1 directory. All other tools respects default ACL when copying/moving files with them (mc, cp, mv, thunar, nemo etc.). 


Operating System: Alt Linux P9
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.12.9
Kernel Version: 5.7.19-un-def-alt1


ADDITIONAL INFORMATION
I can test problem in another distribution with more fresh software. Let me know if you need it.
Comment 1 Yar4e 2021-11-30 12:48:41 UTC
I can't reproduce it in Alt Linux P10. Looks like it fixed!