Event parameters with `<>` not rendering in event/alarm views

Description

If an event parameter includes both `<` and `>` characters, these are stored in the database (and display properly via REST), but are not rendered in the alarms or events view.
These characters should be escaped out when rendered as part of alarm and event list and detail views, as well as on the snmpinterface.jsp page.

This was noticed specifically when rendering an SNMP Interface ifAlias that is wrapped as < interface text >

Acceptance / Success Criteria

None

Attachments

1

Activity

Show:

Christian Pape October 12, 2023 at 6:08 AM

Merged.

Christian Pape October 12, 2023 at 6:07 AM

Please review:

  • PR:

JianYet October 4, 2023 at 5:02 PM

It looks like the problem is that the XML parser is parsing the special characters <> as an XML element. If I escape them with &lt; and &gt; in my ifAlias, they show up fine.

Unresolved

Details

Assignee

Reporter

HB Grooming Date

HB Backlog Status

Sprint

Affects versions

Priority

PagerDuty

Created September 27, 2023 at 5:43 PM
Updated March 13, 2024 at 3:04 PM