You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2023/07/13 12:34:00 UTC

[jira] [Resolved] (CAMEL-19601) camel-core - Limit auto conversion when stream caching is enabled

     [ https://issues.apache.org/jira/browse/CAMEL-19601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-19601.
---------------------------------
    Resolution: Fixed

> 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: New Feature
>          Components: came-core
>            Reporter: Nicolas Filotto
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.22.0, 4.0.0, 4.0-RC2
>
>
> 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 resulting 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)