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

   Backport of CAMEL-24084 to `camel-4.18.x` (main PR apache/camel#24724).
   
   ## Summary
   
   The Knative consumer filters inbound HTTP headers through 
`KnativeHttpHeaderFilterStrategy`, but structured content mode 
(`application/cloudevents+json`) mapped the remaining event fields (extensions) 
onto the message headers **without** a `HeaderFilterStrategy` — inconsistent 
with the binary/HTTP-header path. This routes structured-mode extension fields 
through a `HeaderFilterStrategy` so `Camel*` headers (matched 
case-insensitively) are filtered consistently on both content modes. Ordinary 
CloudEvent extension attributes are unaffected.
   
   ## Backport note
   On `camel-4.18.x`, `DefaultHeaderFilterStrategy` does **not** filter 
`Camel*` inbound by default (that default only exists on `main`/`4.21.x` via 
CAMEL-23543), so the strategy sets 
`setInFilterStartsWith(CAMEL_FILTER_STARTS_WITH)` explicitly — otherwise 
identical to the main fix.
   
   The upgrade-guide note is added on `main` (per the backport upgrade-guide 
policy), not on this branch.
   
   - JIRA: [CAMEL-24084](https://issues.apache.org/jira/browse/CAMEL-24084)
   
   _Claude Code on behalf of Andrea Cosentino (@oscerd)_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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