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

Do not prepend / if the basepath is empty #729

Merged
merged 1 commit into from
Oct 27, 2015
Merged

Do not prepend / if the basepath is empty #729

merged 1 commit into from
Oct 27, 2015

Conversation

rullzer
Copy link
Contributor

@rullzer rullzer commented Oct 25, 2015

Described in owncloud/core#20003 (comment)

Basically in the root the basepath is empty. And this childnodes are cached like '/' while they should be cached as ''.

It seems this is also still the case in the current master.

This makes sure that in the root child entries are cached properly like

'A' instead of '/A' which is not expected in the function getNodeForPath
@evert
Copy link
Member

evert commented Oct 27, 2015

Hey @rullzer , thanks for finding this. I wrote an alternative patch for this in 6223d06

Your own patch has an issue with strings such as '0'.

Good find though!

evert added a commit that referenced this pull request Oct 27, 2015
Do not prepend / if the basepath is empty
@evert evert merged commit e35defd into sabre-io:2.1 Oct 27, 2015
@rullzer rullzer deleted the fix_tree_cache branch October 27, 2015 07:49
@rullzer
Copy link
Contributor Author

rullzer commented Oct 27, 2015

Ah yes always fun that '0' stuff in php. 😉

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.

2 participants