Zoran Regvart created CAMEL-13249:
-------------------------------------
Summary: Header filtering in HTTP producers from
RestProducerFactory filters IN instead of OUT headers
Key: CAMEL-13249
URL: https://issues.apache.org/jira/browse/CAMEL-13249
Project: Camel
Issue Type: Bug
Components: camel-http-common
Affects Versions: 2.18.0
Reporter: Zoran Regvart
Assignee: Zoran Regvart
Fix For: 3.0.0, 2.23.2, 2.24.0
{{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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)