Skip to content
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

Properly handle SMB ACL blocking scanning a directory #25383

Merged
merged 1 commit into from
Jan 29, 2021
Merged

Conversation

juliusknorr
Copy link
Member

This makes sure that a possible ForbiddenException is properly passed through the storage as a ForbiddenException and can be catched when trying to fetch the quota info of a parent folder.

Should fix #24893

For some background the issue has been showing itself since we started to also fetch the quota info with the regular files app propfind in #24102 which basically lead to an uncatched ForbiddenException when the scanner tried to get the size of the children of an SMB mount that had some directories with ACL that blocks the access.

This makes sure that a possible ForbiddenException is properly passed
through the storage as a ForbiddenException and can be catched when
trying to fetch the quota info of a parent folder

Signed-off-by: Julius Härtl <jus@bitgrid.net>
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

forbidden

@rullzer rullzer merged commit 98c8cd5 into master Jan 29, 2021
@rullzer rullzer deleted the bugfix/24893 branch January 29, 2021 14:52
@juliusknorr
Copy link
Member Author

/backport to stable20

@juliusknorr
Copy link
Member Author

/backport to stable19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WebDAV yields empty results when encountering restricted content in SMB external storage (patch included)
4 participants