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

Always normalize root paths during resolution of paths #11446

Merged
merged 1 commit into from Jun 1, 2015

Conversation

jaymode
Copy link
Member

@jaymode jaymode commented Jun 1, 2015

Currently, when trying to determine if a location is within one of the configured repository
paths, we compare the root path against a normalized path but the root path is never
normalized so the check may incorrectly fail. This change normalizes the root path and
compares it to the other normalized path.

Relates to #11426

Currently, when trying to determine if a location is within one of the configured repository
paths, we compare the root path against a normalized path but the root path is never
normalized so the check may incorrectly fail. This change normalizes the root path and
compares it to the other normalized path.

Relates to elastic#11426
@imotov
Copy link
Contributor

imotov commented Jun 1, 2015

LGTM

@jaymode jaymode merged commit d437135 into elastic:master Jun 1, 2015
@kevinkluge kevinkluge removed the review label Jun 1, 2015
@clintongormley clintongormley added the :Core/Infra/Settings Settings infrastructure and APIs label Jun 2, 2015
@clintongormley clintongormley changed the title always normalize root paths during resolution of paths Always normalize root paths during resolution of paths Jun 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Core/Infra/Settings Settings infrastructure and APIs v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants