Uploaded image for project: 'Commons JCS'
  1. Commons JCS
  2. JCS-133

RemoteUtils.getNamingURL does not handle IPv6 numeric addresses properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • jcs-2.0-beta-1
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            tv Thomas Vandahl
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: