Skip to content

[backport camel-4.14.x] CAMEL-23588: camel-undertow - filter the legacy websocket.* exchange-header prefix#23993

Merged
oscerd merged 1 commit into
apache:camel-4.14.xfrom
oscerd:backport-CAMEL-23588-camel-4.14.x
Jun 12, 2026
Merged

[backport camel-4.14.x] CAMEL-23588: camel-undertow - filter the legacy websocket.* exchange-header prefix#23993
oscerd merged 1 commit into
apache:camel-4.14.xfrom
oscerd:backport-CAMEL-23588-camel-4.14.x

Conversation

@oscerd

@oscerd oscerd commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Backport to camel-4.14.x of CAMEL-23588 (main commit d5a717dd0f8).

Note: adapted, not a verbatim backport

On camel-4.14.x, UndertowHeaderFilterStrategy is the @deprecated implementation extending DefaultHeaderFilterStrategy (on main / 4.18.x it was rewritten to extend HttpHeaderFilterStrategy). A verbatim cherry-pick is therefore impossible. The change is adapted to 4.14.x's structure: the existing initialize() now adds the legacy websocket. prefix to the in/out filter prefixes (alongside Camel / camel).

The DefaultHeaderFilterStrategy.doFiltering lowerCase fallback matches the prefix case-insensitively, so websocket.* headers (in any case) are filtered in both directions — behaviour equivalent to main.

Changes

  • UndertowHeaderFilterStrategy: add WEBSOCKET_FILTER_STARTS_WITH = "websocket." and include it in setOutFilterStartsWith / setInFilterStartsWith.
  • camel-4x-upgrade-guide-4_14.adoc: add the camel-undertow "potential breaking change" entry, grouped with the existing camel-vertx-websocket / camel-atmosphere-websocket (CAMEL-23532) family.

The matching entry will be synced to the 4_14 upgrade guide on main in a separate doc-sync PR, per the upgrade-guide policy.


Claude Code on behalf of Andrea Cosentino

…filter the legacy websocket.* exchange-header prefix

Backport to camel-4.14.x of the main-branch change (d5a717d). On 4.14.x the
UndertowHeaderFilterStrategy is the (deprecated) DefaultHeaderFilterStrategy-based
implementation, so the change is adapted rather than copied verbatim: the existing
initialize() now adds the legacy websocket.* prefix to the in/out filter prefixes
(alongside Camel/camel). The lowerCase fallback in DefaultHeaderFilterStrategy.doFiltering
matches the prefix case-insensitively, giving behaviour equivalent to main. Documents
the change in the 4.14 upgrade guide alongside the CAMEL-23532 websocket family.
@oscerd oscerd requested review from Croway and gnodet June 12, 2026 13:16
@oscerd oscerd merged commit 2b15fe8 into apache:camel-4.14.x Jun 12, 2026
3 checks passed
@oscerd oscerd deleted the backport-CAMEL-23588-camel-4.14.x branch June 12, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants