oscerd opened a new pull request, #23250:
URL: https://github.com/apache/camel/pull/23250

   ## Backport of #23233
   
   Cherry-pick of #23233 onto `camel-4.18.x`.
   
   **Original PR:** #23233 - CAMEL-23515: camel-nats - Use dedicated 
HeaderFilterStrategy aligned with sibling components
   **Original author:** @oscerd
   **Target branch:** `camel-4.18.x`
   
   ### Conflict resolution
   
   The original commit added the note to `camel-4x-upgrade-guide-4_21.adoc`, 
which does not exist on
   `camel-4.18.x` (modify/delete conflict). Resolved by dropping the 4.21 guide 
change and adding the
   equivalent note to the existing `=== camel-nats` section in 
`camel-4x-upgrade-guide-4_18.adoc` on
   this branch. The corresponding `camel-4x-upgrade-guide-4_18.adoc` entry on 
`main` is being added in
   a separate doc-sync PR per the project's backport upgrade-guide policy.
   
   ### Original description
   
   `camel-nats` defaulted its `headerFilterStrategy` to a bare `new 
DefaultHeaderFilterStrategy()`,
   which passes every inbound NATS header (including `Camel*` / `camel*` / 
`org.apache.camel.*`) onto
   the Exchange. This introduces `NatsHeaderFilterStrategy` (following the 
`KafkaHeaderFilterStrategy`
   / `MailHeaderFilterStrategy` shape) and switches the default to use it, 
aligning `camel-nats` with
   the rest of the component catalog. Includes a unit test and the 
upgrade-guide note.
   
   JIRA: https://issues.apache.org/jira/browse/CAMEL-23515 (fixVersions include 
4.18.3)
   
   _Claude Code on behalf of Andrea Cosentino_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to