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 2019/01/15 15:49:29 UTC

[camel] branch master updated: CAMEL-13054: Olingo4Endpoint - avoid swallowing consumer options

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 42a4c22  CAMEL-13054: Olingo4Endpoint - avoid swallowing consumer options
42a4c22 is described below

commit 42a4c22acd6a78c5eefc843f9ce668ac2d878deb
Author: phantomjinx <p....@phantomjinx.co.uk>
AuthorDate: Tue Jan 15 08:47:23 2019 +0000

    CAMEL-13054: Olingo4Endpoint - avoid swallowing consumer options
    
    * Those options prefixed with 'consumer' are required to be processed by
      Olingo4Endpoint's parent class. However, they are getting added to the
      query options instead and never applied to the scheduling consumer.
      closes #2708
---
 .../java/org/apache/camel/component/olingo4/Olingo4Endpoint.java  | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/components/camel-olingo4/camel-olingo4-component/src/main/java/org/apache/camel/component/olingo4/Olingo4Endpoint.java b/components/camel-olingo4/camel-olingo4-component/src/main/java/org/apache/camel/component/olingo4/Olingo4Endpoint.java
index dfd9e93..c1ccfb4 100644
--- a/components/camel-olingo4/camel-olingo4-component/src/main/java/org/apache/camel/component/olingo4/Olingo4Endpoint.java
+++ b/components/camel-olingo4/camel-olingo4-component/src/main/java/org/apache/camel/component/olingo4/Olingo4Endpoint.java
@@ -196,6 +196,14 @@ public class Olingo4Endpoint extends AbstractApiEndpoint<Olingo4ApiName, Olingo4
             final Map.Entry<String, Object> entry = it.next();
             final String paramName = entry.getKey();
 
+            /**
+             * Avoid swallowing consumer scheduler properties, which
+             * get processed in configureProperties()
+             */
+            if (paramName.startsWith("consumer.")) {
+                continue;
+            }
+
             if (!endpointPropertyNames.contains(paramName)) {
 
                 // add to query params