[ 
https://issues.apache.org/jira/browse/CAMEL-12078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16332269#comment-16332269
 ] 

ASF GitHub Bot commented on CAMEL-12078:
----------------------------------------

tdudgeon opened a new pull request #2185: Failing test for CAMEL-12078
URL: https://github.com/apache/camel/pull/2185
 
 
   This PR provides a failing test for CAMEL-12078.
   It shows that the DataSource for an attachment  is read twice.
   The test to look at is MimeMultipartDataFormatTest.attachmentReadOnce()

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> MIME-Mutipart DataFormat reads attachment DataSource twice
> ----------------------------------------------------------
>
>                 Key: CAMEL-12078
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12078
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-mail
>    Affects Versions: 2.20.1
>            Reporter: Tim Dudgeon
>            Priority: Minor
>             Fix For: 2.21.0
>
>
> As reported on mailing list if an attachment for MIME-Mutipart DataFormat is 
> defined using a DataSource that can only be read once you get an exception.
> http://mail-archives.apache.org/mod_mbox/camel-users/201712.mbox/%3C0e0d4b2e-dc32-c61e-3ccd-7ee14238c485%40gmail.com%3E
> For instance, this happens if the DataSource is created using an InputStream 
> that cannot be read multiple times
> It should be possible to post the data only reading the input a single time.
> I will add a test case shortly.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to