]
Lucas Ponce updated GTNPORTAL-3511:
-----------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
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.