You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gn...@apache.org on 2026/09/11 09:02:46 UTC
(camel) branch backport/26183-to-camel-4.22.x created (now 9f3f3645ae35)
This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a change to branch backport/26183-to-camel-4.22.x
in repository https://gitbox.apache.org/repos/asf/camel.git
at 9f3f3645ae35 [backport camel-4.22.x] CAMEL-24424: camel-vertx-http - apply the outbound header filter on the REST producer
This branch includes the following new commits:
new 9f3f3645ae35 [backport camel-4.22.x] CAMEL-24424: camel-vertx-http - apply the outbound header filter on the REST producer
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(camel) 01/01: [backport camel-4.22.x] CAMEL-24424: camel-vertx-http - apply the outbound header filter on the REST producer
Posted by gn...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch backport/26183-to-camel-4.22.x
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 9f3f3645ae3524d3cd5aabb7243944f210ae92ff
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Sep 8 13:30:13 2026 +0200
[backport camel-4.22.x] CAMEL-24424: camel-vertx-http - apply the outbound header filter on the REST producer
---
.../ROOT/pages/camel-4x-upgrade-guide-4_22.adoc | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc
index ba334d38fbbd..a403ef72355c 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc
@@ -1865,3 +1865,22 @@ Routes that set `useRecovery=false` are unaffected. Routes that left recovery en
default, stop seeing in-progress aggregations re-delivered, and start seeing genuine recovery. The cache
now also holds one entry per completed and not yet confirmed exchange; those entries are removed on
confirmation.
+
+=== camel-vertx-http - the REST producer applies the outbound header filter
+
+`VertxHttpRestHeaderFilterStrategy.applyFilterToCamelHeaders` delegated to
+`applyFilterToExternalHeaders`, so it consulted the inbound filter while implementing the outbound
+direction. The outbound filter that `VertxHttpHeaderFilterStrategy` installs was therefore never
+applied, and the sibling REST strategies in `camel-http-common`, `camel-netty-http` and
+`camel-undertow` all delegate to the matching method.
+
+A REST producer that resolves to `vertx-http` and does not configure its own `headerFilterStrategy`
+now filters the common HTTP headers on the outbound direction, as the other HTTP components already
+did. A message header named `Content-Length`, `Content-Type`, `Host`, `Cache-Control`, `Connection`,
+`Date`, `Pragma`, `Trailer`, `Transfer-Encoding`, `Upgrade`, `Via` or `Warning` is no longer copied
+onto the outgoing request; the `Content-Type` of the request is still taken from the exchange as
+before. Headers consumed by the URI template or the query parameters continue to be filtered, and a
+custom `headerFilterStrategy` is used as-is and is unaffected.
+
+Routes that relied on one of those headers reaching the wire must set it through the endpoint
+configuration or supply a `headerFilterStrategy` that permits it.