Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-9071

Jsr160ConnectionFactory doesn't work with IPv6 address

    Details

    • Sprint:
      Horizon - Feb 15th

      Description

      The Jsr160ConnectionFactory does not create valid JMX URIs when connecting to an IPv6 address. If the IPv6 address and port are both specified (which they always are in our code), then the address portion needs to be wrapped in square brackets so that there is a delimiter between the last octet and the ":" that indicates the port number.

      Incorrect:
      service:jmx:rmi:///jndi/rmi://0000:0000:0000:0000:0000:0000:0000:0001:18980/jmxrmi
      
      Correct:
      service:jmx:rmi:///jndi/rmi://[0000:0000:0000:0000:0000:0000:0000:0001]:18980/jmxrmi
      

      We should change the class so that it always wraps IPv6 addresses in square brackets when calling the JMXServiceURL constructor.

        Attachments

          Activity

            People

            • Assignee:
              seth Seth Leger
              Reporter:
              seth Seth Leger
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: