Kumarann created CAMEL-8092:
-------------------------------
Summary: cxf:producer Matrix Params are missing
Key: CAMEL-8092
URL: https://issues.apache.org/jira/browse/CAMEL-8092
Project: Camel
Issue Type: Bug
Components: camel-cxf
Affects Versions: 2.14.0
Environment: JDK 8. Spring,
Reporter: Kumarann
Fix For: 2.14.1
In cxfrs component the producer strips away the matrix param.
Steps to reproduce:
Web service proxying configuration (camel-proxy-example).
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="cxfrs://bean://rsServer?bindingStyle=SimpleConsumer"/>
<to uri="cxfrs://bean://rsClient"/>
</route>
</camelContext>
But we can see that the Matrix Parameters are completely stripped away in
CxfRsProducer. The SimpleConsumer as the binding style the matrix param will
be sent as header params. But shouldn't the matrix params part of the URL.
ID: 15
Address: http://localhost:8001/test/services/proxyServer/boxing;state=Current
Http-Method: GET
Content-Type:
Headers: {Accept=[application/xml], accept-encoding=[gzip, deflate],
accept-language=[en-us], Authorization=[xxxx], connection=[keep-alive],
Content-Length=[0], Content-Type=[null], host=[localhost:8001]}
--------------------------------------
---------------------------
ID: 16
Address: http://localhost:29090/MyServer/boxing
Http-Method: GET
Content-Type: */*
Headers: {Accept=[application/xml], state=[Current], user-agent=[xxxxxx],
accept-encoding=[gzip, deflate], Content-Length=[0], Authorization=[xxxxx],
org.apache.cxf.request.uri=[/services/proxyServer/boxing;state=Current],
host=[localhost:8001], connection=[keep-alive], accept-language=[en-us],
org.apache.cxf.message.Message.PATH_INFO=[/boxing],
org.apache.cxf.request.method=[GET], Content-Type=[*/*]}
I have came across similar issue posted in the past. CAMEL-5405 CXF Transport
loses HTTP Matrix parameters But we are using camel 2.14.0 version.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)