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

Camel Undertow does not provide an option to use the producer as the "Host" header when bridging two http endpoints

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0.RC3
    • 3.0.0, 2.25.0
    • camel-undertow
    • None
    • Unknown

    Description

      Camel undertow always propagates the same host header from source to target. There is no option to disable this.

      <route>
                  <from uri="undertow:http://localhost:8189"/>
                  <log message="Source ${in.headers.Host}" />
                  <to uri="undertow:http://localhost:8289"/>
              </route>
              <route>
                  <from uri="undertow:http://localhost:8289"/>
                  <log message="Target ${in.headers.Host}" />
              </route>
      

       
      Result:

      2019-11-05 12:43:54.738  INFO 30967 --- [  XNIO-2 task-1] route1 :  Source localhost:8189
      2019-11-05 12:43:54.789  INFO 30967 --- [  XNIO-3 task-1] route2 :  Target localhost:8189
      

      Expected:

      2019-11-05 12:43:54.738  INFO 30967 --- [  XNIO-2 task-1] route1 :  Source localhost:8189
      2019-11-05 12:43:54.789  INFO 30967 --- [  XNIO-3 task-1] route2 :  Target localhost:8289
      

      An option to disable the preservation of the original host is present in camel-http 

      Attachments

        Activity

          People

            acosentino Andrea Cosentino
            avi5kdon@gmail.com Avinash Dongre
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m