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

[stable-2.19] Fix nested resource check for publicly shared space root #4634

Merged
merged 2 commits into from
Apr 16, 2024

Conversation

rhafer
Copy link
Contributor

@rhafer rhafer commented Apr 16, 2024

backports #4632

Get rid of some duplication by moving the isSpaceRoot function to the utils package.

(cherry picked from commit 11aacac)
@rhafer rhafer self-assigned this Apr 16, 2024
@rhafer rhafer requested review from labkode, a team and glpatcern as code owners April 16, 2024 12:33
The 'Path' returned as part of the ResourceInfo from a Stat call might
be relative. So we need to Use 'GetPath()' to lookup the full path of
the parent. Otherwise the simple 'HasPrefix' check for whether a file a
ancestor might fail.

Co-Authored-By: Christian Richter <crichter@owncloud.com>
(cherry picked from commit 56d2be7)
@rhafer rhafer merged commit 12692ac into cs3org:stable-2.19 Apr 16, 2024
9 checks passed
rhafer added a commit to rhafer/ocis that referenced this pull request Apr 16, 2024
rhafer added a commit to rhafer/ocis that referenced this pull request Apr 17, 2024
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

2 participants