oscerd commented on PR #24134:
URL: https://github.com/apache/camel/pull/24134#issuecomment-4751574983

   Thanks @davsclaus — good catch, verified:
   
   - **camel-jackson-avro** and **camel-jackson-protobuf**: confirmed. Both 
`createNewObjectMapper()` return a bare `new AvroMapper()` / `new 
ProtobufMapper()`, while their `transform/` mappers (`Avro.java` / 
`Protobuf.java`) already enable `BLOCK_UNSAFE_POLYMORPHIC_BASE_TYPES` — exactly 
the gap this PR fixes for JSON.
   - **camel-jackson3**: investigated — no code enables this MapperFeature, and 
Jackson 3.x reworked default typing (mandatory `PolymorphicTypeValidator`), so 
`BLOCK_UNSAFE_POLYMORPHIC_BASE_TYPES` likely does not apply there. Excluded 
pending a dedicated Jackson-3 review.
   
   Keeping this PR scoped to `camel-jackson` (CAMEL-23786). Tracked the 
avro/protobuf hardening as a follow-up: **CAMEL-23803** 
(https://issues.apache.org/jira/browse/CAMEL-23803).
   
   _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]

Reply via email to