You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Stephan Siano (JIRA)" <ji...@apache.org> on 2016/05/24 07:09:12 UTC

[jira] [Work started] (CAMEL-9986) MIME-Multipart Data Format is inconsistent if trying to unmarshal non-MIME data

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

Work on CAMEL-9986 started by Stephan Siano.
--------------------------------------------
> MIME-Multipart Data Format is inconsistent if trying to unmarshal non-MIME data
> -------------------------------------------------------------------------------
>
>                 Key: CAMEL-9986
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9986
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-mail
>    Affects Versions: 2.17.1
>            Reporter: Stephan Siano
>            Assignee: Stephan Siano
>            Priority: Trivial
>
> If data that is not a MIME-Multipart is tried to marshal with the headersInline option set to false, no error is thrown and the message is left as the original message.
> In case the headersInline option is set to true, an empty message is returned.
> The provided patch changes the behavior that it also tries to return the original message in case the message is not a mime-multipart and headersInline is set to true. However there are limits to this: If the message body is a stream and stream caching is not enabled it is necessary to read the stream in order to find out whether this is a MIME-Multipart or not. Afterwards the message body will be empty (as with the previous implementation). 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)