-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Set umask before operations that create local files #25280
Conversation
does this fix any known issue ? |
What is the status here? |
93afb8d
to
e09921f
Compare
this solves issues where "other php stuff" is messing with the umask Signed-off-by: Robin Appelman <[email protected]>
e09921f
to
e5dc1a8
Compare
This should be good for review now. This solves a case where some unknown external "thing" was messing with the umask, causing files and folders created by nextcloud to not be writable |
using this PR to retest CI after nextcloud/docker-ci#274 CI restarted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 code looks fine
/backport to stable21 |
/backport to stable20 |
seems this has some side effect: #29041 |
This merge is quite unfortunate for the Unraid community, which uses the umask for Nextcloud to change the default permissions of files and folders created since they are working with docker mounts that require the group permissions to have write access. You probably don't care about such scenarios where Nextcloud is working together with smb shares, but in any case I consider setting fixed permissions inside the PHP code as bad practice. I would very much like to see a configuration parameter here to change them. |
The issues mentioned should be fixed by fixing the "other php stuff" (whatever it may be...), as they are the cause of the problem. Not by hiding the real issues by forcefully changing a carefully admin-selected sensible umask in Nextcloud, which breaks stuff and makes Nextcloud part of the issue. |
this solves issues where "other php stuff" is messing with the umask