[backport camel-4.18.x] CAMEL-23506: align aws2-sqs/sns HeaderFilterStrategy with siblings#23357
Merged
oscerd merged 1 commit intoMay 20, 2026
Merged
Conversation
Sqs2HeaderFilterStrategy and Sns2HeaderFilterStrategy only configured an outbound filter. Add setInFilterStartsWith(CAMEL_FILTER_STARTS_WITH) so the inbound direction is aligned with the sibling strategies (Kafka, Mail, CoAP, Google Pub/Sub, ...). The existing outbound regex (which also catches breadcrumbId and org.apache.camel.*) is unchanged. Includes focused unit tests in both modules and the camel-4x-upgrade-guide-4_18.adoc note. (cherry picked from commit 5f57258) JIRA: https://issues.apache.org/jira/browse/CAMEL-23506 Closes apache#23221
Merged
2 tasks
davsclaus
approved these changes
May 20, 2026
Merged
3 tasks
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.
Summary
Backport of #23221 onto
camel-4.18.x.Sqs2HeaderFilterStrategyandSns2HeaderFilterStrategyonly configured an outbound filter.This change adds
setInFilterStartsWith(CAMEL_FILTER_STARTS_WITH)so the inbound direction isaligned with the sibling strategies (Kafka, Mail, CoAP, Google Pub/Sub, ...). The existing
outbound regex (which also catches
breadcrumbIdandorg.apache.camel.*) is unchanged.Includes:
camel-aws2-sqsandcamel-aws2-sns.camel-4x-upgrade-guide-4_18.adocentry (sibling doc-sync PR CAMEL-23506: docs - sync camel-aws2-sqs / camel-aws2-sns 4.18 upgrade-guide entry to main #23354 syncs thesame entry into
main).Original PR: #23221
Original author: @oscerd
Jira: https://issues.apache.org/jira/browse/CAMEL-23506
Test plan
mvn clean install -DskipTestsfrom the worktree root — passes (exit 0).camel-iggysection, matching thesibling backport's pattern ([backport camel-4.18.x] CAMEL-23532: camel-vertx-websocket / camel-atmosphere-websocket / camel-iggy - use dedicated HeaderFilterStrategy aligned with sibling components #23313).
Claude Code on behalf of Andrea Cosentino