Skip to content
This repository was archived by the owner on Apr 20, 2026. It is now read-only.

require scheme to be given parsing localhost URLs - #1

Merged
vito merged 1 commit into
concourse:masterfrom
scnewma:master
Jul 9, 2018
Merged

vito merged 1 commit into
concourse:masterfrom
scnewma:master

Conversation

@scnewma

@scnewma scnewma commented Jul 7, 2018

Copy link
Copy Markdown

Concourse should now correctly notify users of invalid localhost URLs
when setting the external-url property on atc.

URLs that do not contain a slash after the scheme are parsed as if there
is a schema but no host by url.Parse. This caused localhost URLs without
http schemes to be considered valid even though Concourse requires them
to have the schema.

See: concourse/concourse#1668

Concourse should now correctly notify users of invalid localhost URLs
when setting the external-url property on atc.

URLs that do not contain a slash after the scheme are parsed as if there
is a schema but no host by url.Parse. This caused localhost URLs without
http schemes to be considered valid even though Concourse requires them
to have the schema.

See: concourse/concourse#1668
@vito

vito commented Jul 9, 2018

Copy link
Copy Markdown
Contributor

good catch, thanks!

@vito
vito merged commit b093f65 into concourse:master Jul 9, 2018
@vito vito added the enhancement New feature or request label Jul 9, 2018
@vito vito modified the milestone: v4.0.0 Jul 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants