Adding new thresholds to an existing group often throws an IndexOutOfBoundsException

Description

Sometimes when attempting to create a threshold in an existing threshold group, clicking Save results in "OpenNMS Web User Interface Has Experienced an Error."

It seems to happen more frequently than not, and occurs intermittently even when attempting to create a threshold with the same values. It does not seem to matter what type of threshold is selected, or which fields are left blank.

In the jetty-server.log, we see "Index X out of bounds for length X", where X is the number of currently configured thresholds. When inspecting the form field payload in Chrome, we see isNew: true and thresholdIndex: X, where X is the number of currently configured thresholds.

Acceptance / Success Criteria

None

Attachments

3

Activity

Show:

Christian Pape April 17, 2023 at 5:33 AM

Good catch!

Alex May April 14, 2023 at 4:19 PM

I was able to recreate the issue by reloading Threshd config while creating a new threshold / expression.

PR:

Christian Pape March 10, 2023 at 1:46 PM

I’m still not able to reproduce the error.

Will Keaney March 9, 2023 at 2:18 PM

, , thresholds.xml

Here you go.

Veena Kannan March 8, 2023 at 3:09 PM

Just pinging here for input as requested by Christian.

Fixed

Details

Assignee

Reporter

HB Grooming Date

HB Backlog Status

Components

Sprint

Affects versions

Priority

PagerDuty

Created January 25, 2023 at 7:58 PM
Updated April 19, 2023 at 12:06 PM
Resolved April 19, 2023 at 12:06 PM