Croway commented on PR #25871:
URL: https://github.com/apache/camel/pull/25871#issuecomment-5452423357

   Thanks for investigating this. I do not think the global size guard belongs 
in `MessageSupport`, since it changes `getMandatoryBody()` semantics by 
rejecting an already-compatible `String` or `byte[]` when no conversion occurs.
   
   Please address the actual error path instead: stop 
`TypeConversionException.createMessage()` from embedding the complete value 
(report its type instead), add a regression test proving the body’s 
`toString()` is not invoked while constructing/wrapping the conversion failure, 
and retain the existing same-instance behavior. Converting a multi-GB stream to 
`String` should remain a streaming/route-design concern.
   
   _Codex on behalf of @Croway_


-- 
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