[camel] branch master updated: [CAMEL-13576]avoid adding cxf message context map into camel exchange

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[camel] branch master updated: [CAMEL-13576]avoid adding cxf message context map into camel exchange

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

ffang 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 ec56002  [CAMEL-13576]avoid adding cxf message context map into camel exchange
     new f19e00f  Merge branch 'master' of github.com:apache/camel
ec56002 is described below

commit ec56002b1a9740cf0422231b21a685c7b12f88c9
Author: Freeman Fang <[hidden email]>
AuthorDate: Fri May 24 11:21:06 2019 -0400

    [CAMEL-13576]avoid adding cxf message context map into camel exchange
---
 .../main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java   | 1 -
 .../java/org/apache/camel/component/cxf/CxfProducerContextTest.java   | 4 +---
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
index 0ee1e12..ea7222f 100644
--- a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
+++ b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
@@ -526,7 +526,6 @@ public class DefaultCxfBinding implements CxfBinding, HeaderFilterStrategyAware
             cxfContext.putAll(camelExchange.getProperties());
         }
         
-        camelExchange.setProperty(contextKey, cxfContext);
     }
 
     /**
diff --git a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfProducerContextTest.java b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfProducerContextTest.java
index d8615d6..d44ace8 100644
--- a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfProducerContextTest.java
+++ b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfProducerContextTest.java
@@ -47,9 +47,7 @@ public class CxfProducerContextTest extends CxfProducerTest {
         // No direct access to native CXF Message but we can verify the
         // request context from the Camel exchange
         assertNotNull(exchange);
-        Map<String, Object> requestContext = CastUtils.cast((Map<?, ?>)exchange.getProperty(Client.REQUEST_CONTEXT));
-        assertNotNull(requestContext);
-        String actualValue = (String)requestContext.get(TEST_KEY);
+        String actualValue = (String)exchange.getProperties().get(TEST_KEY);
         assertEquals("exchange property should get propagated to the request context", TEST_VALUE, actualValue);
     }