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

Return the proper jailed path when requesting the root path #16999

Merged
merged 1 commit into from
Sep 4, 2019

Conversation

juliushaertl
Copy link
Member

Fix fixes an issue encountered with #16932

To reproduce, try to create a file in the root of a group folder with a rule setup in files_accesscontrol

The issue when creating a directory in the root of a group folder is that the path is not ending with a /, therefore the check for the matching root path (which is always ending with a / due to the rtrim is failing.

So this makes sure the jailed path is returned properly then:
image

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@rullzer rullzer merged commit 30d00e6 into master Sep 4, 2019
@rullzer rullzer deleted the bugfix/noid/getJailedPath-root branch September 4, 2019 18:52
@rullzer rullzer added this to the Nextcloud 17 milestone Sep 4, 2019
@rullzer rullzer mentioned this pull request Sep 4, 2019
16 tasks
@juliushaertl
Copy link
Member Author

/backport to stable16

@juliushaertl
Copy link
Member Author

/backport to stable15

@backportbot-nextcloud
Copy link

backport to stable16 in #17012

@backportbot-nextcloud
Copy link

backport to stable15 in #17013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants