oscerd opened a new pull request, #22583: URL: https://github.com/apache/camel/pull/22583
## Summary Mirrors the change applied to camel-netty in CAMEL-23297. \`MinaConverter.toObjectInput(IoBuffer)\` now installs an \`ObjectInputFilter\` on the returned \`ObjectInputStream\`: - If a JVM-wide filter is configured (\`ObjectInputFilter.Config.getSerialFilter()\`), it is reused as-is. - Otherwise a default Camel filter is applied: \`java.**;javax.**;org.apache.camel.**;!*\`. The default allowlist matches the one already in use by \`NettyConverter\`. Tracked as [CAMEL-23319](https://issues.apache.org/jira/browse/CAMEL-23319). Same hardening pattern as [CAMEL-23297](https://issues.apache.org/jira/browse/CAMEL-23297) (camel-netty), camel-leveldb, and camel-consul. ## Test plan - [x] New \`MinaConverterTest.testToObjectInputAcceptsAllowlistedTypes\` — verifies a \`java.lang.String\` round-trips through \`toObjectInput\`. - [x] New \`MinaConverterTest.testToObjectInputRejectsUnlistedTypes\` — verifies a serializable type from a non-allowlisted package (\`com.example.external.NotAllowedSerializable\`) is rejected with \`InvalidClassException\`. - [x] \`mvn -Dtest=MinaConverterTest test\` - 7/7 pass - [x] \`mvn clean install -DskipTests\` from project root - clean build, no catalog/DSL regen needed (signature unchanged) --- _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]
