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 auth-url parsing if hostname misses a dot #818

Merged
merged 1 commit into from
Jul 10, 2021
Merged

Conversation

jcmoraisjr
Copy link
Owner

auth-url accepts http/s or service protocol, and the later accepts namespaced service names, if the configuration allows, since v0.13-snapshot.3. Namespaced names has a slash just like URIs, so parsing the whole URL is somewhat tricky. A domain name without dots was being matched as a namespace and concatenated with the first dir of the path, leading to a lookup error. This update fixes this behavior and also adds a few more unit tests covering more URL formats.

`auth-url` accepts http/s or service protocol, and the later accepts
namespaced service names, if the configuration allows, since
`v0.13-snapshot.3`. Namespaced names has a slash just like URIs, so
parsing the whole URL is somewhat tricky. A domain name without dots
was being matched as a namespace and concatenated with the first dir of
the path, leading to a lookup error. This update fixes this behavior
and also adds a few more unit tests covering more URL formats.
@jcmoraisjr
Copy link
Owner Author

#817

@jcmoraisjr jcmoraisjr merged commit 47b1d14 into master Jul 10, 2021
@jcmoraisjr jcmoraisjr deleted the jm-auth-url-host branch July 10, 2021 18:59
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.

1 participant