Skip to content

[backport camel-4.14.x] CAMEL-23319: Add deserialization filtering to camel-mina converter#22585

Merged
davsclaus merged 1 commit intoapache:camel-4.14.xfrom
oscerd:backport-CAMEL-23319-4.14.x
Apr 13, 2026
Merged

[backport camel-4.14.x] CAMEL-23319: Add deserialization filtering to camel-mina converter#22585
davsclaus merged 1 commit intoapache:camel-4.14.xfrom
oscerd:backport-CAMEL-23319-4.14.x

Conversation

@oscerd
Copy link
Copy Markdown
Contributor

@oscerd oscerd commented Apr 13, 2026

Backport of #22583 to `camel-4.14.x`

Parallel PR (not a cherry-pick — source PR #22583 is still open on `main`).

`MinaConverter.toObjectInput(IoBuffer)` now installs an `ObjectInputFilter` on the returned `ObjectInputStream`, mirroring the change applied to `camel-netty` in CAMEL-23297:

  • 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.**;!*`.

Source PR: #22583
Sibling backport: #22584 (camel-4.18.x)
Target branch: `camel-4.14.x`
JIRA: CAMEL-23319
Related: CAMEL-23297 (same pattern in camel-netty)

Test plan


Claude Code on behalf of Andrea Cosentino

- MinaConverter.toObjectInput(): Apply default ObjectInputFilter restricting
  to java.**, javax.**, org.apache.camel.** (respects JVM-wide filter if set)

Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
@oscerd oscerd requested review from davsclaus and orpiske April 13, 2026 13:35
@davsclaus davsclaus merged commit 8e7f633 into apache:camel-4.14.x Apr 13, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants