Duty schedules with embedded newlines break startup

Description

Customer reported the following exception stack trace in eventd.log after upgrading from Meridian 2016 to Meridian 2017.1.1:

The culprit turned out to be a duty-schedule in groups.xml:

Fixing it up as follows fixed the problem:

So it appears we need to trim the string before trying to parse its components. Maybe Castor did this for us?

Environment

https://mynms.opennms.com/Ticket/Display.html?id=5301 Any system with existing {{<duty-schedule>}} elements in {{groups.xml}}, where the tag contents are not on the same line as the starting / ending tags

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Jesse White October 31, 2017 at 1:42 PM

Fixed

Details

Assignee

Reporter

Labels

Components

Sprint

Affects versions

Priority

PagerDuty

Created October 24, 2017 at 10:15 PM
Updated October 31, 2017 at 1:42 PM
Resolved October 31, 2017 at 1:42 PM