commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JCS-133) RemoteUtils.getNamingURL does not handle IPv6 numeric addresses properly
Date Sun, 29 Jun 2014 17:26:24 GMT
Sebb created JCS-133:
------------------------

             Summary: RemoteUtils.getNamingURL does not handle IPv6 numeric addresses properly
                 Key: JCS-133
                 URL: https://issues.apache.org/jira/browse/JCS-133
             Project: Commons JCS
          Issue Type: Bug
            Reporter: Sebb


The RemoteUtils.getNamingURL method does the following concatenation to produce the result:

"//" + registryHost + ":" + registryPort + "/" + serviceName;

This works fine for host names and IPv4, but does not work for literal IPv6 addresses which
have to be enclosed in [ and ]

A crude way to fix this would be to look for ":" in the registryHost string.

If present, the zone index identifier (%2 or %eth0) needs to be encoded because the % is special.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message