Skip to content

fix: permissions when copying from readonly storage #53726

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rotdrop
Copy link
Contributor

@rotdrop rotdrop commented Jun 30, 2025

Summary

#51846 (comment)

TODO

  • Cleanup. Perhaps a bit hacky.

Checklist

@rotdrop rotdrop requested a review from a team as a code owner June 30, 2025 12:55
@rotdrop rotdrop requested review from ArtificialOwl, leftybournes and come-nc and removed request for a team June 30, 2025 12:55
@susnux susnux changed the title Fix nextcloud/server#51846 fix: permissions when copying from readonly storage Jun 30, 2025
@susnux susnux added bug 3. to review Waiting for reviews labels Jun 30, 2025
@susnux susnux added this to the Nextcloud 32 milestone Jun 30, 2025
@susnux
Copy link
Contributor

susnux commented Jun 30, 2025

@rotdrop please use conventional commit messages, e.g.:
fix: permissions when copying from readonly storage

See also https://www.conventionalcommits.org/en/v1.0.0/

@rotdrop rotdrop force-pushed the bugfix/fix-permissions-when-copying-from-readonly-storage branch 2 times, most recently from fcb7f05 to f5e6cb8 Compare June 30, 2025 14:17
@rotdrop rotdrop requested a review from a team as a code owner June 30, 2025 14:17
@rotdrop rotdrop requested review from susnux, nfebe and skjnldsv and removed request for a team June 30, 2025 14:17
@rotdrop
Copy link
Contributor Author

rotdrop commented Jun 30, 2025

I wonder if similar permission problems could occur with moveFromStorage, at least in edge cases.

@rotdrop rotdrop force-pushed the bugfix/fix-permissions-when-copying-from-readonly-storage branch from f5e6cb8 to ed965a2 Compare June 30, 2025 14:20
@come-nc come-nc requested a review from icewind1991 June 30, 2025 14:34
@come-nc
Copy link
Contributor

come-nc commented Jun 30, 2025

This is quite mysterious to me, maybe @icewind1991 understands better what this is about?
It’s at least missing comments to make it understandable.

@come-nc come-nc closed this Jun 30, 2025
@come-nc come-nc reopened this Jun 30, 2025
@come-nc
Copy link
Contributor

come-nc commented Jun 30, 2025

(did not meant to close, it was a misclick)

@rotdrop
Copy link
Contributor Author

rotdrop commented Jun 30, 2025

This is quite mysterious to me, maybe @icewind1991 understands better what this is about? It’s at least missing comments to make it understandable.

Well, but we have the linked issue #51846 with quite a bunch of comments. So in summary:

  • when copying files out of read-only storages like read-only shares or read-only external mounts
  • ... then the read-only permissions are copied over to the destination
  • if you then try to modify the copied files in the destination location then you find them read-only
  • this is -- at the very least -- very unexpected: as end-user you of course assume that copying stuff to a location where you have write permissions results in modifiable data
  • also: the web-frontend does not provide any means to the end-user to correct this problem

Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
@rotdrop rotdrop force-pushed the bugfix/fix-permissions-when-copying-from-readonly-storage branch from ed965a2 to 4a3cd26 Compare July 1, 2025 06:38
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 bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Can't edit/delete files copied from read-only shared folders
3 participants