You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by dm...@apache.org on 2018/12/22 21:32:27 UTC

[camel] branch camel-2.21.x updated: CAMEL-13008: Odata-connector assumes '/' at end of URI

This is an automated email from the ASF dual-hosted git repository.

dmvolod pushed a commit to branch camel-2.21.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-2.21.x by this push:
     new f3a0c50  CAMEL-13008: Odata-connector assumes '/' at end of URI
f3a0c50 is described below

commit f3a0c503835fd87950e6e5e63b999b576222dd12
Author: Dmitry Volodin <dm...@gmail.com>
AuthorDate: Thu Dec 20 16:40:20 2018 +0300

    CAMEL-13008: Odata-connector assumes '/' at end of URI
---
 .../org/apache/camel/component/olingo4/api/impl/Olingo4AppImpl.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-olingo4/camel-olingo4-api/src/main/java/org/apache/camel/component/olingo4/api/impl/Olingo4AppImpl.java b/components/camel-olingo4/camel-olingo4-api/src/main/java/org/apache/camel/component/olingo4/api/impl/Olingo4AppImpl.java
index fec20e5..fa0e89f 100644
--- a/components/camel-olingo4/camel-olingo4-api/src/main/java/org/apache/camel/component/olingo4/api/impl/Olingo4AppImpl.java
+++ b/components/camel-olingo4/camel-olingo4-api/src/main/java/org/apache/camel/component/olingo4/api/impl/Olingo4AppImpl.java
@@ -778,7 +778,7 @@ public final class Olingo4AppImpl implements Olingo4App {
 
         final StringBuilder absolutUri = new StringBuilder(resourceUri).append(SEPARATOR).append(resourcePath);
         if (queryOptions != null && !queryOptions.isEmpty()) {
-            absolutUri.append("/?" + queryOptions);
+            absolutUri.append("?" + queryOptions);
         }
         return absolutUri.toString();