Lucas Ponce created GTNPORTAL-3511:
--------------------------------------
Summary: BasicHttpFetcher doesn't support IPv6 addresses
Key: GTNPORTAL-3511
URL:
https://issues.jboss.org/browse/GTNPORTAL-3511
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Shindig
Affects Versions: 3.8.2.Final
Reporter: Lucas Ponce
Assignee: Lucas Ponce
Fix For: 3.9.0.Final
BasicHttpFetcher.java cannot process IPv6 with format [::1].
Some logic like this:
String[] hostparts =
StringUtils.splitPreserveAllTokens(uri.getAuthority(),':');
int port = -1; // default port
if (hostparts.length > 2) {
throw new GadgetException(GadgetException.Code.INVALID_USER_DATA,
"Bad host name in request: " + uri.getAuthority(),
HttpServletResponse.SC_BAD_REQUEST);
}
has to be updated to support IPv4 and IPv6 formats.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)