Skip to content

[backport camel-4.18.x] CAMEL-23506: align aws2-sqs/sns HeaderFilterStrategy with siblings#23357

Merged
oscerd merged 1 commit into
apache:camel-4.18.xfrom
oscerd:backport/23221-to-camel-4.18.x
May 20, 2026
Merged

[backport camel-4.18.x] CAMEL-23506: align aws2-sqs/sns HeaderFilterStrategy with siblings#23357
oscerd merged 1 commit into
apache:camel-4.18.xfrom
oscerd:backport/23221-to-camel-4.18.x

Conversation

@oscerd
Copy link
Copy Markdown
Contributor

@oscerd oscerd commented May 20, 2026

Summary

Backport of #23221 onto camel-4.18.x.

Sqs2HeaderFilterStrategy and Sns2HeaderFilterStrategy only configured an outbound filter.
This change adds 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:

Original PR: #23221
Original author: @oscerd
Jira: https://issues.apache.org/jira/browse/CAMEL-23506

Test plan

Claude Code on behalf of Andrea Cosentino

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
@oscerd oscerd merged commit 7b334be into apache:camel-4.18.x May 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants