-
Notifications
You must be signed in to change notification settings - Fork 895
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
JDBCCOnnectionURLParser creates ambiguous IPv6 address for shortUrl #1421
Comments
Wait, what IS this |
My understanding is, and I may be way-off but bear with me, building a |
We are almost on the same page. My confusion is about why do we take url, parse it and then combine it back to |
Right! I think this might be due to the non-standard way some additional properties are expressed on the URL, with |
Nice catch. @imavroukakis. I think #1403 is fine. I admit when I wrote that parser, I was trying to cover as many cases as I could think of, but didn't consider this case. |
Thank you, I will aim to get around to trying my hand at a fix for this, day job permitting ;-) |
Given the following JDBC URL
"jdbc:mariadb:loadbalance://[2001:0660:7401:0200:0000:0000:0edf:bdd7]:33,mdb.host/mdbdb"
shortUrl
becomes"mariadb:loadbalance://2001:0660:7401:0200:0000:0000:0edf:bdd7:33"
. This is not recommended as per https://tools.ietf.org/html/rfc5952#page-11 as it creates an ambiguous IPv6 address. In order to define a port with an IPv6 address in a URL-like manner it is recommended to wrap the address with square brackets as per https://tools.ietf.org/html/rfc3986 , i.e.mariadb:loadbalance://[2001:0660:7401:0200:0000:0000:0edf:bdd7]:33
The text was updated successfully, but these errors were encountered: