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

Merged
merged 3 commits into from
Dec 4, 2024

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

@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

@ShGKme ShGKme linked an issue Oct 28, 2024 that may be closed by this pull request
8 tasks
@icewind1991 icewind1991 merged commit c2f474f into master Dec 4, 2024
188 checks passed
@icewind1991 icewind1991 deleted the copy-share-unmasked branch December 4, 2024 19:11
@icewind1991
Copy link
Member Author

/backport to stable30

@icewind1991
Copy link
Member Author

/backport to stable29

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.

[Bug]: wrong permissions attributed to a copy of a file
3 participants