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

Header filtering in HTTP producers from RestProducerFactory filters IN instead of OUT headers

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      HttpRestHeaderFilterStrategy is used by HTTP producers and it delegates to applyFilterToExternalHeaders from superclass, which filters in the IN direction instead of in the OUT direction.

      This leads to an issue when HTTP consumer is followed by a HTTP producer created from the RestProducerFactory implementation in that the HTTP headers that are meant to be filtered out are passed on to the HTTP service being invoked.

      These headers include Host header which is used for virtual hosting and will most likely fail the request with 404 or 503 HTTP status.

      Attachments

        Issue Links

          Activity

            People

              zregvart Zoran Regvart
              zregvart Zoran Regvart
              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 - 20m
                  20m