[backport camel-4.14.x] CAMEL-23588: camel-undertow - filter the legacy websocket.* exchange-header prefix#23993
Merged
oscerd merged 1 commit intoJun 12, 2026
Conversation
…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.
davsclaus
approved these changes
Jun 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport to
camel-4.14.xof CAMEL-23588 (main commitd5a717dd0f8).Note: adapted, not a verbatim backport
On
camel-4.14.x,UndertowHeaderFilterStrategyis the@deprecatedimplementation extendingDefaultHeaderFilterStrategy(on main / 4.18.x it was rewritten to extendHttpHeaderFilterStrategy). A verbatim cherry-pick is therefore impossible. The change is adapted to 4.14.x's structure: the existinginitialize()now adds the legacywebsocket.prefix to the in/out filter prefixes (alongsideCamel/camel).The
DefaultHeaderFilterStrategy.doFilteringlowerCasefallback matches the prefix case-insensitively, sowebsocket.*headers (in any case) are filtered in both directions — behaviour equivalent to main.Changes
UndertowHeaderFilterStrategy: addWEBSOCKET_FILTER_STARTS_WITH = "websocket."and include it insetOutFilterStartsWith/setInFilterStartsWith.camel-4x-upgrade-guide-4_14.adoc: add thecamel-undertow"potential breaking change" entry, grouped with the existingcamel-vertx-websocket/camel-atmosphere-websocket(CAMEL-23532) family.The matching entry will be synced to the
4_14upgrade guide onmainin a separate doc-sync PR, per the upgrade-guide policy.Claude Code on behalf of Andrea Cosentino