Nicolas Filotto created CAMEL-19601:
---------------------------------------
Summary: camel-core - Limit auto conversion when stream caching is
enabled
Key: CAMEL-19601
URL: https://issues.apache.org/jira/browse/CAMEL-19601
Project: Camel
Issue Type: Improvement
Components: came-core
Reporter: Nicolas Filotto
When stream caching is enabled which is the case by default since 3.17, all
body types that can be converted into a {{StreamCache}} are automatically
converted which could be a problem when the body type is not a stream and we
don't want to have the body as a stream.
For example, if we use a CXF producer, the body is of type {{Response}} but
when the stream caching is enabled, it is automatically converted into
{{StreamCache}} so we have no more access to the rest of the data available in
{{Response}}, in other words, we somehow lost info.
The goal of this improvement is to find a way to limit the auto conversation to
{{StreamCache}} to some specific classes like subclasses of {{StreamSource}},
{{InputStream}} and {{Reader}}, to avoid converting unwanted types just because
a converter exists.
One way could be to provide a list of allowed classes.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)