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

The PSM doesn't work with IPv6 addresses if the ${ipaddr} placeholder is used on host or virtual-host

    Details

      Description

      In order to use an IPv6 address on a URL or the HTTP Host header, the IP address must be enclosed within brackets in order to be valid.

      In other words,

      Valid
      http://[2001:470:e2f1::d076:7aa8:3b6d:b630]:8980/opennms
      
      Invalid
      http://2001:470:e2f1::d076:7aa8:3b6d:b630:8980/opennms
      
      Valid
      Host: [2001:470:e2f1::d076:7aa8:3b6d:b630]:8980
      
      Invalid
      Host: 2001:470:e2f1::d076:7aa8:3b6d:b630:8980
      

      The PSM is not checking if the IPv6 address has brackets when processing the placeholder which prevents the operation of the monitor.

      The solution is to add the brackets at run-time if required in order to use the same PSM definition for both IPv4 and IPv6 addresses.

        Attachments

          Activity

            People

            • Assignee:
              agalue Alejandro Galue
              Reporter:
              agalue Alejandro Galue
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: