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

Bridged http servlet endpoints should not populate request parameters into exchange headers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 2.20.2
    • None
    • camel-http-common
    • None
    • Unknown

    Description

      When you create a servlet endpoint and use the bridgeEndpoint option, the queryParameters should NOT be put into the exchange headers, because when you pass this on to the next  (http4) endpoint you have the query parameters and the same parameters as http headers.  So now you are sending additional headers instead of bridging.

       

      example

       

      from("servlet:?matchOnUriPrefix=true&bridgeEndpoint=true")
        .to("http4://localhost:8080/testService);
      

       

                         

      You can work around this by creating a custom httpBinding, but you should not have to do this when the connection is bridged.

      WIll submit PR.

      Attachments

        Activity

          People

            Unassigned Unassigned
            transamericamoon john
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: