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

Validation failure for shorthand IPv6 urls #5521

Closed
driegel opened this issue Nov 30, 2015 · 7 comments
Closed

Validation failure for shorthand IPv6 urls #5521

driegel opened this issue Nov 30, 2015 · 7 comments
Labels
bug Fixes for quality problems that affect the customer experience Team:Operations Team label for Operations Team

Comments

@driegel
Copy link

driegel commented Nov 30, 2015

Hello,

I believe that this is a bug in Kibana 4.2 and 4.3:

In the 'config/kibana.yml' I am using the following setting:

elasticsearch.url: "http://[::1]:9200"

While running Kibana 4.3, I get the following fatal error:

ValidationError: child "elasticsearch" fails because [child "url" fails because ["url" must be a valid uri with a scheme matching the http|https pattern]]

I believe that I am using a proper IPv6 url and it works (similar) with Kibana 4.1.3. Thanks for looking into this.

@rashidkpc rashidkpc added the bug Fixes for quality problems that affect the customer experience label Nov 30, 2015
@bsll
Copy link

bsll commented Jan 16, 2016

I have the same questions. the "elasticsearch.url" shoule be corrected by “elasticsearch_url”.

@spalger
Copy link
Contributor

spalger commented Jan 18, 2016

@bsll elasticsearch_url was deprecated with 4.2 and it is now elasticsearch.url

@rocky4bmw
Copy link

Hi Spalger,

How can this issue be resolved?

[fatal] ValidationError: child "elasticsearch" fails because [child "url" fails because ["url" must be a valid uri with a scheme matching the http|https pattern]]

@driegel
Copy link
Author

driegel commented Jul 4, 2016

Well, as far as I understand it should be easy to fix that because it's actually using valid IPv6 URLs - only the safety check fails.

Unfortunately, I do not see that it is scheduled to be fixed in the upcoming 5.0 release and also, if someone would submit a pull request today, I doubt that it would make it in the upcoming 5.0 release.

@jbudz
Copy link
Member

jbudz commented Nov 1, 2016

Full IPv6 addresses should work, something like : elasticsearch.url: "http://[0000:0000:0000:0000:0000:0000:0000:0001]:9200"

@jbudz jbudz added the Team:Operations Team label for Operations Team label Nov 1, 2016
@jbudz jbudz changed the title Validation failure for IPv6 urls Validation failure for shorthand IPv6 urls Nov 1, 2016
@driegel
Copy link
Author

driegel commented Nov 2, 2016

Well, IPv6 addresses may come from an database or Puppet. It is not sufficient if some IPv6 notations work, I feel that all valid IPv6 notations must work!

@jbudz
Copy link
Member

jbudz commented Feb 2, 2019

This is fixed now, I'm not sure the exact version but tested working in 5.6+. There's another change we need to make for browser requests at #29891 but we can close this out now.

@jbudz jbudz closed this as completed Feb 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Operations Team label for Operations Team
Projects
None yet
Development

No branches or pull requests

6 participants