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

[backport/2.19] fix(auth/scope): fix nested resource check when creating a new resource #4665

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

rhafer
Copy link
Contributor

@rhafer rhafer commented Apr 29, 2024

When creating a reource (e.g a document via the app/new endpoint) below a next folder structure of a public link, we can't stat the resource itself (it doesn't exit yet) for checking if it is a descendant of the share root. We now stat the resource's parent instead in that case.

Fixes: owncloud/ocis#8957 (cherry picked from commit 5faad8d)

When creating a reource (e.g a document via the app/new endpoint) below a next
folder structure of a public link, we can't stat the resource itself (it
doesn't exit yet) for checking if it is a descendant of the share root.
We now stat the resource's parent instead in that case.

Fixes: owncloud/ocis#8957
(cherry picked from commit 5faad8d)
@rhafer rhafer marked this pull request as ready for review April 29, 2024 09:23
@rhafer rhafer requested review from labkode, glpatcern and a team as code owners April 29, 2024 09:23
@rhafer rhafer merged commit ddd52b1 into cs3org:stable-2.19 Apr 29, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants