Fixed
Details
Assignee
Alejandro GalueAlejandro GalueReporter
Alejandro GalueAlejandro GalueComponents
Fix versions
Affects versions
Priority
Major
Details
Details
Assignee
Alejandro Galue
Alejandro GalueReporter
Alejandro Galue
Alejandro GalueComponents
Fix versions
Affects versions
Priority
PagerDuty
PagerDuty
PagerDuty
Created November 9, 2015 at 1:01 PM
Updated April 2, 2016 at 9:02 AM
Resolved November 10, 2015 at 8:17 AM
When querying a ReST API for an element that doesn't exist, the answer should be either an HTTP 204 (No Content) or an HTTP 404 (Not Found).
Unfortunately, this is not the case for the Alarms end point. It returns an HTTP 200 with no content.
In order to reproduce the problem, do the following:
Install OpenNMS
Add a test node
Generate a fake node down event using send-event.pl
Query the alarms ReST end point to verify that there is one alarm for the node down.
Query the alarms ReST end point for a specific alarm using a number you know it doesn't exist on the alarms table
I verified this behavior with Meridian 2015.1.0 and latest build of 17.0.0-SNAPSHOT.