[ https://issues.apache.org/jira/browse/CAMEL-13008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16724288#comment-16724288 ]
Dmitry Volodin commented on CAMEL-13008: ---------------------------------------- [~phantomjinx], could you please to test this issue with camel-olingo4 component as this fix looks like already present in implementation https://github.com/apache/camel/blob/44dacd6a5528c85c31c8a3de708ddeb0e7e4b52b/components/camel-olingo4/camel-olingo4-api/src/main/java/org/apache/camel/component/olingo4/api/impl/Olingo4AppImpl.java#L199 > Odata-connector assumes '/' at end of URI > ----------------------------------------- > > Key: CAMEL-13008 > URL: https://issues.apache.org/jira/browse/CAMEL-13008 > Project: Camel > Issue Type: Bug > Components: camel-olingo4 > Affects Versions: 2.21.0 > Reporter: Paul Richardson > Assignee: Dmitry Volodin > Priority: Major > > An issue comes to light when testing certain odata implementations that do > not handle a '/' being added to the end of the consumed URI, eg. > * Implementation of the olingo4 > [tutorial|https://olingo.apache.org/doc/odata4/tutorials/read/tutorial_read.html] > * Services deployed using current implementations of [teiid|http://teiid.io/] > Use of the odata-connector on these services results in a _malformed URI_ > error. > Essentially, when the service URI is concatenated with the resource path, the > constructed URI is > [appended|https://github.com/apache/camel/blob/master/components/camel-olingo4/camel-olingo4-api/src/main/java/org/apache/camel/component/olingo4/api/impl/Olingo4AppImpl.java#L781] > with a '/' and a '?' prior to the addition of the query parameters. > This works fine for the reference odata > [implementation|https://services.odata.org/TripPinRESTierService/(S(4gus0w41xmxedlzbywj2srqo))/People/?$filter=FirstName%20eq%20%27Scott%27] > since can handle the extra '/'. > Since both teiid and the olingo4 tutorial use the olingo4 libraries, it would > seem that the problem might be solved with them. However, it might be > advantageous, given odata implementations already deployed, whether this > odata-connector might check whether the '/' was supported before appending it? > (note. a bug [report|https://issues.jboss.org/browse/TEIID-5573] has been > logged with the teiid project to this affect). -- This message was sent by Atlassian JIRA (v7.6.3#76005)