Node label accepts ampersand (&) symbol, but it breaks graphing

Description

I can create anode with an & character (I have anode named CRA_Buck&Smith), but if I try to plot resource graphs for that node it throws an exception:

2018-03-05 10:50:08,839 WARN [qtp2036789693-8441] o.e.j.s.HttpChannel: /opennms/graph/results.htm │
│javax.servlet.ServletException: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalArgumentException: Ill-formed│
│ resource ID: node[CameraInventory:CRA_Buck
│ at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:138) ~[jetty-server-9.4.2.v20170220.jar:9.4.2.v20170220] │LE
AS│ at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) ~[jetty-server-9.4.2.v20170220.jar:9.4.2.v20170220] │
│ at org.opennms.netmgt.jetty.MDCHandler.handle(MDCHandler.java:46) ~[opennms-jetty-21.0.4.jar:?]

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Christian Pape July 29, 2019 at 12:07 PM
Edited

I tried node labels like "should&fail" with backshift and png engine but the rendering of the graphs seems to work fine for branch 24.1.3-SNAPSHOT. Marking as Cannot Reproduce. Please provide additional details in order to help us look into this issue.

Cannot Reproduce

Details

Assignee

Reporter

Sprint

Fix versions

Affects versions

Priority

PagerDuty

Created March 5, 2018 at 8:56 AM
Updated July 29, 2019 at 12:11 PM
Resolved July 29, 2019 at 12:08 PM

Flag notifications