[
https://issues.apache.org/jira/browse/CAMEL-7842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Willem Jiang resolved CAMEL-7842.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.15.0
2.14.1
2.13.3
2.12.5
Applied the patch into master, camel-2.14.x, camel-2.13.x and camel-2.12.x
branches.
> Avoid using InputStreamEntity for byte[] input
> ----------------------------------------------
>
> Key: CAMEL-7842
> URL: https://issues.apache.org/jira/browse/CAMEL-7842
> Project: Camel
> Issue Type: Bug
> Components: camel-http4
> Affects Versions: 2.14.0
> Reporter: Benjamin Graf
> Assignee: Willem Jiang
> Fix For: 2.12.5, 2.13.3, 2.14.1, 2.15.0
>
>
> Sending byte[] input via http in some circumstances causes ugly
> NonRepeatableEntityException because of the internal usage of
> InputStreamEntity in the HttpEntityConverter which is not repeatable. The
> usage of ByteArrayEntity seems more resonable for this input.
> A workaround is to explicitly convertbodyto string but this is taken with
> care because of encoding when creating string and StringEntity later on!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)