oscerd opened a new pull request, #27047: URL: https://github.com/apache/camel/pull/27047
Backport of #26748 (CAMEL-24900) to `camel-4.18.x`. **Not a straight cherry-pick — please review.** On this release line `DefaultHeaderFilterStrategy` does not filter `Camel`/`camel` header names by default (that default arrived with CAMEL-23543, present only on 4.21.x and later). A plain `new DefaultHeaderFilterStrategy()` therefore filters nothing here, and the two regression tests fail. To keep the same behaviour as newer releases, `JcrEndpoint` configures the strategy explicitly: ```java DefaultHeaderFilterStrategy strategy = new DefaultHeaderFilterStrategy(); strategy.setInFilterStartsWith(DefaultHeaderFilterStrategy.CAMEL_FILTER_STARTS_WITH); strategy.setOutFilterStartsWith(DefaultHeaderFilterStrategy.CAMEL_FILTER_STARTS_WITH); ``` With that, both `getById` and insert filter `Camel*` case-insensitively; ordinary document properties are preserved. The two regression tests pass on this branch (they fail without the explicit configuration). The upgrade-guide entry lives on `main` only. 🤖 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]
