[ https://issues.apache.org/jira/browse/CAMEL-13006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dmitry Volodin updated CAMEL-13006: ----------------------------------- Fix Version/s: 2.23.1 2.24.0 3.0.0 2.22.3 2.21.4 > Missing properties on Olingo4 consumer initialisation > ----------------------------------------------------- > > Key: CAMEL-13006 > URL: https://issues.apache.org/jira/browse/CAMEL-13006 > Project: Camel > Issue Type: Bug > Components: camel-olingo4 > Affects Versions: 2.21.0 > Reporter: Paul Richardson > Assignee: Dmitry Volodin > Priority: Major > Fix For: 2.21.4, 2.22.3, 3.0.0, 2.24.0, 2.23.1 > > Attachments: > 0001-CAMEL-13006-Fix-for-required-properties-in-odata-con.patch > > > Essentially, after replacing the olingo4 component in the context to bypass > the null [serviceUri > issue|https://issues.apache.org/jira/browse/CAMEL-13005], 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. > {anchor:(1)} [1] > https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/util/component/ApiConsumerHelper.java#L55 > {anchor:(2)} [2] > https://gist.github.com/phantomjinx/90ee08a989ddff4366d792cc621b36a9#file-properties-issue-java > {anchor:(3)} [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 -- This message was sent by Atlassian JIRA (v7.6.3#76005)