Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-12179

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

    XMLWordPrintable

Details

    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

        Issue Links

          Activity

            People

              acosenti Andrea Cosentino
              rhn-support-adongre Avinash Dongre
              Alexandre Briani Kieling Alexandre Briani Kieling
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: