Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-13006

Missing properties on Olingo4 consumer initialisation

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      Essentially, after replacing the olingo4 component in the context to bypass the null serviceUri issue, the route moves on to initialising the Olingo4Consumer. The latter tests the 'read' method to ensure all properties have been set (1). However, this fails due to the properties 'edm' and 'responseHandler' being missing.

      Have come up with a test (2) that demonstrates the problem.

      These properties are not documented (since they appear to be output properties). However
      , they are added into the property names collection of the endpoint (3). This collection is compared against the method signatures in the Olingo4AppEndpointConfiguration and neither s/getEdm or s/getResponseHandler exist hence the exception thrown.

      [1] https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/util/component/ApiConsumerHelper.java#L55
      [2] https://gist.github.com/phantomjinx/90ee08a989ddff4366d792cc621b36a9#file-properties-issue-java
      [3] https://github.com/apache/camel/blob/master/components/camel-olingo4/camel-olingo4-component/src/main/java/org/apache/camel/component/olingo4/Olingo4Endpoint.java#L150

      Attachments

        Issue Links

          Activity

            People

              dmvolod Dmitry Volodin
              phantomjinx Paul Richardson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: