Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect permissions when copying shared files #48769

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

icewind1991
Copy link
Member

  • Save the original permissions of shared files as scan_permissions
  • Use scan_permissions as the target permissions when doing copyFromCache

To test:

  • setup instance with s3
  • Share F1 from U1 to U2
  • As U2 copy F1 to another folder
  • Check that the copied file has delete permissions

…g share cache items

Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Oct 17, 2024
@icewind1991 icewind1991 added this to the Nextcloud 31 milestone Oct 17, 2024
@icewind1991 icewind1991 requested review from a team, Altahrim, provokateurin and sorbaugh and removed request for a team October 17, 2024 16:31
@icewind1991
Copy link
Member Author

Fixes #46248

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants