Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-4891

nodeAdded event create when POSTing to REST api does not include nodeLabel

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.9.90
    • 1.10.2
    • REST
    • Security Level: Default (Default Security Scheme)
    • None

    Description

      When posting to the REST api to create a node:

      curl -X POST -d @/tmp/node.xml --user admin:admin -H 'Content-type: application/xml' http://localhost:8980/opennms/rest/nodes | xmllint --format -

      where /tmp/node.xml is:

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <node type="A" label="uzbekistan">
      <labelSource>A</labelSource>
      </node>

      The node is created.. and a nodeAdded event is sent.. however... the event does not contain the nodeLabel parameter so it looks wrong in the gui

      Attachments

        Activity

          People

            agalue Alejandro Galue
            brozow Matt Brozowski (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: