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

Measurements ReST API broken in develop (CXF)

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 17.0.0
    • Fix Version/s: 17.0.0
    • Component/s: REST
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      If you edit $OPENNMS_HOME/etc/opennms.properties and set org.opennms.web.graphs.engine to use backshift, the measurements API returns a 500 error:

      Caused by: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "source" (Class org.opennms.netmgt.measurements.model.QueryRequest), not marked as ignorable
      at [Source: org.apache.cxf.transport.http.AbstractHTTPDestination$1@27e42878; line: 1, column: 68] (through reference chain: org.opennms.netmgt.measurements.model.QueryRequest["source"])
             at org.codehaus.jackson.map.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:53)
             at org.codehaus.jackson.map.deser.StdDeserializationContext.unknownFieldException(StdDeserializationContext.java:267)
             at org.codehaus.jackson.map.deser.std.StdDeserializer.reportUnknownProperty(StdDeserializer.java:673)
             at org.codehaus.jackson.map.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:659)
             at org.codehaus.jackson.map.deser.BeanDeserializer.handleUnknownProperty(BeanDeserializer.java:1365)
             at org.codehaus.jackson.map.deser.BeanDeserializer._handleUnknown(BeanDeserializer.java:725)
             at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:703)
             at org.codehaus.jackson.map.deser.BeanDeserializer.deserialize(BeanDeserializer.java:580)
             at org.codehaus.jackson.map.ObjectMapper._readValue(ObjectMapper.java:2704)
             at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1315)
             at org.codehaus.jackson.jaxrs.JacksonJsonProvider.readFrom(JacksonJsonProvider.java:419)
             at org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBodyReader(JAXRSUtils.java:1337)
             at org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBody(JAXRSUtils.java:1288)
             at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameter(JAXRSUtils.java:824)
             at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameters(JAXRSUtils.java:787)
             at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:212)
             ... 88 more

      This is the same query format/API that Compass uses as well, so Compass is likely broken too.

        Attachments

          Activity

            People

            • Assignee:
              ranger Benjamin Reed
              Reporter:
              ranger Benjamin Reed
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: