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 < and > in my ifAlias, they show up fine.
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 >