You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2026/09/11 09:28:51 UTC
(camel) branch camel-4.22.x updated: [backport camel-4.22.x] CAMEL-24424: camel-vertx-http - apply the outbound header filter on the REST producer (#26323)
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-4.22.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.22.x by this push:
new 2e779c060ba8 [backport camel-4.22.x] CAMEL-24424: camel-vertx-http - apply the outbound header filter on the REST producer (#26323)
2e779c060ba8 is described below
commit 2e779c060ba80fcc18276b234215529c04868960
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Fri Sep 11 11:28:44 2026 +0200
[backport camel-4.22.x] CAMEL-24424: camel-vertx-http - apply the outbound header filter on the REST producer (#26323)
---
.../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.