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

The ReST API used to return XMLs with namespace, and now it doesn't

    XMLWordPrintable

Details

    Description

      In 1.12, the ReST API used to provide the namespace with the XML entities, for example:

      <snmp-info xmlns="http://xmlns.opennms.org/xsd/config/snmp-info">
        <community>blahblah</community>
        <port>161</port>
        <retries>1</retries>
        <timeout>2800</timeout>
        <version>v2c</version>
      </snmp-info>
      
      <snmp-info>
        <community>blahblah</community>
        <maxRepetitions>2</maxRepetitions>
        <maxRequestSize>65535</maxRequestSize>
        <maxVarsPerPdu>10</maxVarsPerPdu>
        <port>161</port>
        <readCommunity>blahblah</readCommunity>
        <retries>1</retries>
        <timeout>1800</timeout>
        <version>v2c</version>
        <writeCommunity>private</writeCommunity>
      </snmp-info>
      

      This can cause problems with external integrations that uses the information from the OpenNMS API and the XSDs to validate the information returned by the ReST API.

      Attachments

        Activity

          People

            patrick.schweizer Patrick Schweizer
            agalue Alejandro Galue
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: