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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.90
    • Fix Version/s: 1.10.2
    • Component/s: REST
    • Security Level: Default (Default Security Scheme)
    • Labels:
      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

            • Assignee:
              agalue Alejandro Galue
              Reporter:
              brozow Matt Brozowski
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: