camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Dettinger (JIRA)" <>
Subject [jira] [Commented] (CAMEL-12078) MIME-Mutipart DataFormat reads attachment DataSource twice
Date Thu, 18 Jan 2018 20:28:00 GMT


Alex Dettinger commented on CAMEL-12078:

Given a quick look at this test case and I can't reproduce any issue.
Indeed, {{DataSource.getInputStream()}} is called twice, but returns a {{SharedByteArrayInputStream}}
instance which support multiple readers.
Changing the test to use {{FileDataSource/FileInputStream}} does not produce either exception.

Could one reproduce the exception ?

> MIME-Mutipart DataFormat reads attachment DataSource twice
> ----------------------------------------------------------
>                 Key: CAMEL-12078
>                 URL:
>             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.
> 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

View raw message