You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An exception is thrown on ipv6 environments because the authority information could be described using an ipv6 ip address.
In such situations, the ipv6 uses ":" as separator for address fields, therefore when also using the ":" to look for the port information is misleading.
A simple example for ipv6 authority info is like this one: "[7a03:908:671:b520:ba27:bbff:ffff:fed2]:1234"
Class "io.vertx.httpproxy.impl.ProxiedRequest" uses some code like this:
This causes the following exception when authority is ipv6 format:
java.lang.NumberFormatException: For input string: "1b74:8f:f43b::1]:80" at java.lang.NumberFormatException. forInputString(NumberFormatException.java:67) at java.lang.Integer.parseInt(Integer.java:668) at java.lang.Integer.parseInt(Integer.java:786) at io.vertx.httpproxy.impl.ProxiedRequest.sendRequest (ProxiedRequest.java:186) at io.vertx.httpproxy.impl.ProxiedRequest.send(ProxiedRequest.java:238)
Version
io.vertx 4.5.1
Context
ipv6 environment over an already proxied request.
Do you have a reproducer?
Reproduce easily on a test just setting the authority to "[7a03:908:671:b520:ba27:bbff:ffff:fed2]:1234"
Steps to reproduce
Extra
Tested on linux 6.2.0-37-generic with jdk 17.
The text was updated successfully, but these errors were encountered:
Questions
An exception is thrown on ipv6 environments because the authority information could be described using an ipv6 ip address.
In such situations, the ipv6 uses ":" as separator for address fields, therefore when also using the ":" to look for the port information is misleading.
A simple example for ipv6 authority info is like this one: "[7a03:908:671:b520:ba27:bbff:ffff:fed2]:1234"
Class "io.vertx.httpproxy.impl.ProxiedRequest" uses some code like this:
` String proxiedAuthority = proxiedRequest.host();
This causes the following exception when authority is ipv6 format:
java.lang.NumberFormatException: For input string: "1b74:8f:f43b::1]:80" at java.lang.NumberFormatException. forInputString(NumberFormatException.java:67) at java.lang.Integer.parseInt(Integer.java:668) at java.lang.Integer.parseInt(Integer.java:786) at io.vertx.httpproxy.impl.ProxiedRequest.sendRequest (ProxiedRequest.java:186) at io.vertx.httpproxy.impl.ProxiedRequest.send(ProxiedRequest.java:238)
Version
io.vertx 4.5.1
Context
ipv6 environment over an already proxied request.
Do you have a reproducer?
Reproduce easily on a test just setting the authority to "[7a03:908:671:b520:ba27:bbff:ffff:fed2]:1234"
Steps to reproduce
Extra
Tested on linux 6.2.0-37-generic with jdk 17.
The text was updated successfully, but these errors were encountered: