-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
base: master
Are you sure you want to change the base?
fix: permissions when copying from readonly storage #53726
Conversation
|
@rotdrop please use conventional commit messages, e.g.: |
fcb7f05 to
f5e6cb8
Compare
|
I wonder if similar permission problems could occur with moveFromStorage, at least in edge cases. |
f5e6cb8 to
ed965a2
Compare
|
This is quite mysterious to me, maybe @icewind1991 understands better what this is about? |
|
(did not meant to close, it was a misclick) |
Well, but we have the linked issue #51846 with quite a bunch of comments. So in summary:
|
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
ed965a2 to
4a3cd26
Compare
|
Thank you, I understand the problem now, but I’m not sure about the fix. It feels a bit hackish. There should be a way to have something more straightforward to set permissions after copy, and avoid having so many special handling. Gentle ping @icewind1991 |
Thank you for coming back to this. Yeah, the fix is hackish (see TODO topic in my initial comment). I think that the scan_permissions come from the scanner code. This also somehow indicates that this problem was already popping up earlier ... |
|
|
#53733 attempts to fix the same issue I believe. From what I can tell the main difference is that this PR has logic to take the permissions of the target parent folder into account. I'm not sure if that's actually needed though. |
I am also not sure. However, I was thinking of target folder with write permissions, but without read permissions (e.g. a write-only share which is used as a p.o box for public upload). Don't known if this is relevant. |
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
See - rotdrop/files_archive#55 - nextcloud/server#53726 - nextcloud/server#53733 Nextcloud up to and including version 32 copies the read-only-permissions of a read-only source to the target of a copy operation, even if the destination storage is writable. This should be fixed upstream, as a workaround a forced scan of the destination seems to also fix the problem at the cost of performance, of course.
See - #55 - nextcloud/server#53726 - nextcloud/server#53733 Nextcloud up to and including version 32 copies the read-only-permissions of a read-only source to the target of a copy operation, even if the destination storage is writable. This should be fixed upstream, as a workaround a forced scan of the destination seems to also fix the problem at the cost of performance, of course.
Summary
#51846 (comment)
TODO
Checklist