You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "oscerd (via GitHub)" <gi...@apache.org> on 2026/04/14 08:23:36 UTC
[PR] [backport camel-4.18.x] CAMEL-23322: Add deserialization filtering to camel-infinispan remote aggregation repository [camel]
oscerd opened a new pull request, #22600:
URL: https://github.com/apache/camel/pull/22600
## Backport of #22599
Cherry-pick of #22599 onto `camel-4.18.x`.
**Original PR:** #22599 - CAMEL-23322: Add deserialization filtering to camel-infinispan remote aggregation repository
**Original author:** @oscerd
**Target branch:** `camel-4.18.x`
**Jira:** https://issues.apache.org/jira/browse/CAMEL-23322
> :warning: **Hold for source PR.** Source PR #22599 on `main` is still open at the time this backport was raised. Please do not merge this backport until #22599 is merged. If the source PR is modified during review (commits rewritten, squashed, or changed), this backport branch will be re-cherry-picked from the final merge commit before merging here.
### Change
`DefaultExchangeHolderUtils.deserialize()` now configures a filter on the
`ObjectInputStream` before calling `readObject()`:
- If a JVM-wide filter is set via `-Djdk.serialFilter` (or
`ObjectInputFilter.Config.setSerialFilter`), that filter is applied.
- Otherwise a default Camel allowlist is applied:
`java.**;javax.**;org.apache.camel.**;!*`.
### Tests
- `DefaultExchangeHolderUtilsTest.testDeserializeAcceptsDefaultExchangeHolder`
verifies that a normal `DefaultExchangeHolder` still round-trips through
the ProtoStream path.
- `DefaultExchangeHolderUtilsTest.testDeserializeRejectsUnlistedType`
verifies that a type outside the allowlist is rejected.
Cherry-pick applied cleanly; both tests pass on the `camel-4.18.x` baseline.
_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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [backport camel-4.18.x] CAMEL-23322: Add deserialization filtering to camel-infinispan remote aggregation repository [camel]
Posted by "oscerd (via GitHub)" <gi...@apache.org>.
oscerd merged PR #22600:
URL: https://github.com/apache/camel/pull/22600
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org