Details
Description
hi,
when we send a http request to a jetty server through a proxy with SSL enabled, it sends the full address in the Http command like this.
GET [2001:db8:10:110::a75:2a3]:28188/hello" class="external-link">https://[2001:db8:10:110::a75:2a3]:28188/hello HTTP/1.1
Jetty fails to parse this IPV6 address format and throws an exception when we try to get different parts of the command like URI, server port etc.
[2008-05-22 03:31:10.657] ERROR 000000000000 GLOBAL_SCOPE The servlet caught a throwable (of type class java.lang.NumberFormatException) and is erroring out: db8:10:110::a75:2a3]:28188
[2008-05-22 03:31:10.657] ERROR 000000000000 GLOBAL_SCOPE [1211441470657] db8:10:110::a75:2a3]:28188
[2008-05-22 03:31:10.66] ERRORDTL 000000000000 GLOBAL_SCOPE [1211441470657]java.lang.NumberFormatException: db8:10:110::a75:2a3]:28188
at org.mortbay.util.TypeUtil.parseInt(TypeUtil.java:380)
at org.mortbay.jetty.HttpURI.getPort(HttpURI.java:381)
at org.mortbay.jetty.Request.getServerName(Request.java:986)
at org.mortbay.jetty.Request.getServerPort(Request.java:1042)
i believe the fix needs to be done in HttpURI.java.
Activity
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Athena Yao [ ayao ] |
| Attachment | ipv6.diff [ 35144 ] |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | 6.1.12 [ 14380 ] | |
| Fix Version/s | 7.0.0pre2 [ 14289 ] | |
| Resolution | Fixed [ 1 ] |
| Fix Version/s | 7.0.0pre2 [ 14289 ] | |
| Fix Version/s | 7.0.0pre3 [ 14417 ] | |
| Fix Version/s | 6.1.12rc1 [ 14480 ] | |
| Fix Version/s | 6.1.12 [ 14380 ] |