-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
feat: Add appconfig to disable fixed userfolder permissions optimization #51145
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
Conversation
0b62c0e to
1b40100
Compare
artonge
left a comment
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.
Feels like a hack, but I guess there is no better way to do it.
Is that optimization really worth it?
|
Fix for #51409 |
1b40100 to
b80b473
Compare
For sure 🙈
Not that I can think of
It saves 1 or more cache operation for most requests and is applicable on 99%+ of instances so I would say so |
b80b473 to
f5c5279
Compare
f5c5279 to
b313aae
Compare
b313aae to
e415894
Compare
- Related to nextcloud/server#51145 Signed-off-by: Louis Chemineau <[email protected]>
8139991 to
d401c77
Compare
2992b5e to
f314cac
Compare
- Related to nextcloud/server#51145 Signed-off-by: Louis Chemineau <[email protected]>
- Related to nextcloud/server#51145 Signed-off-by: Louis Chemineau <[email protected]>
0ba0756 to
a3f7ed0
Compare
- Related to nextcloud/server#51145 Signed-off-by: Louis Chemineau <[email protected]>
3b20fb7 to
079c883
Compare
…ons optimization Signed-off-by: Robin Appelman <[email protected]> Signed-off-by: Louis Chemineau <[email protected]>
079c883 to
2a7add4
Compare
2a7add4 to
a250013
Compare
|
👍 |
…mounted at / exists Signed-off-by: Robin Appelman <[email protected]> Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
a250013 to
1ab6dba
Compare

Currently, to save having to fetch the metadata of the home folder in many cases, we always assume the same value for the permissions of the home folder.
This does however break if the admin has configured an external storage mounted at
/with different permissions.To fix those cases without breaking the optimization for other instances, this adds a flag in the appconfig to disable the optimization and actually fetch the correct permissions.
This flag is automatically set by the files_external app when such an external storage is detected
To test:
/and set as readonlyGroupfolders counterpart: nextcloud/groupfolders#4017