Nodes with invalid NodeTypes can be created via the Nodes Rest-API

Description

Nodes have a nodeType based on an enum:

ACTIVE
The character returned if the node is active
DELETED
The character returned if the node is deleted
UNKNOWN
The character returned if the node type is unset/unknown.

A post request against /rest/nodes with a node definition that is not defining any nodetype is handled as a valid post. The node is created in the DB with nodeType = null. Nodes with nodeType = null are not visible or accessible in OpenNMS.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Seth Leger January 11, 2017 at 10:51 AM

Merged PR, marking as fixed.

commit da00cf612e6241dbfe9db00262280ce78c9cb2d0

Christian Pape January 10, 2017 at 10:08 AM

Fixed

Details

Assignee

Reporter

Components

Sprint

Fix versions

Affects versions

Priority

PagerDuty

Created December 7, 2015 at 4:38 AM
Updated January 11, 2017 at 3:50 PM
Resolved January 11, 2017 at 10:51 AM