Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8092

cxf:producer Matrix Params are missing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.13.3, 2.14.0
    • 2.13.4, 2.14.1, 2.15.0
    • camel-cxf
    • None
    • JDK 8. Spring,

    • Unknown

    Description

      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.

      Attachments

        1. CxfRsProducer.java
          19 kB
          Kumarann

        Activity

          People

            njiang Willem Jiang
            mail2dkumaran@gmail.com Kumarann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: