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

Fix nested resource check for publicly shared space root #4632

Merged
merged 2 commits into from
Apr 16, 2024

Conversation

rhafer
Copy link
Contributor

@rhafer rhafer commented Apr 15, 2024

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

update-docs bot commented Apr 15, 2024

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@rhafer rhafer self-assigned this Apr 15, 2024
@rhafer rhafer changed the title wip: Fix nested resource check for publicly shared space root Fix nested resource check for publicly shared space root Apr 16, 2024
@rhafer rhafer marked this pull request as ready for review April 16, 2024 09:32
@rhafer rhafer requested review from labkode, a team and glpatcern as code owners April 16, 2024 09:32
@rhafer rhafer requested review from butonic, dragonchaser and kobergj and removed request for a team, labkode and glpatcern April 16, 2024 09:32
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>
@rhafer rhafer merged commit 56d2be7 into cs3org:edge 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 owncloud/ocis that referenced this pull request Apr 16, 2024
ownclouders pushed a commit to owncloud/ocis that referenced this pull request Apr 16, 2024
@micbar micbar mentioned this pull request Jun 19, 2024
24 tasks
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