-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Only cache the mimetype if the file exists #17332
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
Only cache the mimetype if the file exists #17332
Conversation
|
/backport to stable17 |
|
/backport to stable16 |
|
/backport to stable15 |
rullzer
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.
We should really get more tests for this code.
|
Yeah, seems like i @kesselb So maybe we need to modify that code block a bit more |
|
Well actually the code from b5f407e was removed by the rework of the workflow thing @juliushaertl |
|
Hmm. I'm not sure if you can reproduce this issue on master. For now files_accesscontrol is not compatible with the new workflow: nextcloud/files_accesscontrol#132 |
|
For the new WFE the file info is set here:
|
juliusknorr
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.
Works as advertised 👏
|
/backport to stable17 |
|
/backport to stable16 |
|
/backport to stable15 |
Otherwise files access control will cache "application/octet-stream" for all the target node on: rename, move, copy and all other methods which create a new item To check this: 1. Add an automated tagging rule which tags on mimetype NOT "httpd/unix-directory" 2. Add an access control rule which checks for any mimetype 3. Create a folder and rename it, the folder should not be tagged, but it is Signed-off-by: Joas Schilling <[email protected]>
6290ebc to
d4d3725
Compare
|
backport to stable17 in #17538 |
|
backport to stable16 in #17539 |
|
backport to stable15 in #17540 |
Otherwise files access control will cache "application/octet-stream"
for all the target node on:
rename, move, copy and all other methods which create a new item
To check this:
Signed-off-by: Joas Schilling [email protected]