Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 14.0.3, Meridian-2015.1.0, 15.0.2
-
Fix Version/s: 16.0.0, Meridian-2015.1.1
-
Component/s: Polling / Monitors / Outages
-
Security Level: Default (Default Security Scheme)
-
Labels:None
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.