Event replacement items that contain '%' characters in result in broken notification text sometimes

Description

In AbstractEventUtil, there's a bit of code that checks for whitespace in a potential replacement parameter. Unfortunately, the regex used does not enable the DOTALL flag, so if you've got something like a Cisco syslog message that often contains '%' signs in them it'll find something like

as a potential param. Clearly this isn't meant to be a parameter. Changing the regex to DOTALL mode seems to fix this.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Benjamin Reed April 3, 2015 at 10:26 PM

Merged to 15.0.2.

David Schlenk April 3, 2015 at 6:09 PM

Benjamin Reed it doesn't look like I've got assign privileges so I'll just name drop and see if you catch it.

David Schlenk April 3, 2015 at 6:08 PM

New PR #248 https://github.com/OpenNMS/opennms/pull/248 against release-15.0.2.

Ronny Trommer March 6, 2015 at 3:50 PM

Can you arrange reviewing and merging the pull request?

David Schlenk March 5, 2015 at 6:03 PM

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Priority

PagerDuty

Created March 5, 2015 at 4:22 PM
Updated April 4, 2015 at 2:21 AM
Resolved April 3, 2015 at 10:26 PM