Updated Branches: refs/heads/camel-2.10.x d88761df7 -> 427c84a7b refs/heads/camel-2.11.x a8a5af068 -> b0e83a72b refs/heads/master 50c847981 -> 1c39edc11
CAMEL-6571: camel-jsch may use wrong inputstream in store file. Thanks to A. Engelmann for the patch. Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/1c39edc1 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/1c39edc1 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/1c39edc1 Branch: refs/heads/master Commit: 1c39edc119ebda5ff1f8c35428bf77cb98d6af4b Parents: 50c8479 Author: Claus Ibsen <[email protected]> Authored: Sat Jul 27 19:15:19 2013 +0200 Committer: Claus Ibsen <[email protected]> Committed: Sat Jul 27 19:15:19 2013 +0200 ---------------------------------------------------------------------- .../main/java/org/apache/camel/component/jsch/ScpOperations.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/1c39edc1/components/camel-jsch/src/main/java/org/apache/camel/component/jsch/ScpOperations.java ---------------------------------------------------------------------- diff --git a/components/camel-jsch/src/main/java/org/apache/camel/component/jsch/ScpOperations.java b/components/camel-jsch/src/main/java/org/apache/camel/component/jsch/ScpOperations.java index 4bea7fb..2499b66 100644 --- a/components/camel-jsch/src/main/java/org/apache/camel/component/jsch/ScpOperations.java +++ b/components/camel-jsch/src/main/java/org/apache/camel/component/jsch/ScpOperations.java @@ -128,7 +128,7 @@ public class ScpOperations implements RemoteFileOperations<ScpFile> { if (is == null) { is = exchange.getIn().getMandatoryBody(InputStream.class); } - write(channel, file, exchange.getIn().getMandatoryBody(InputStream.class), cfg); + write(channel, file, is, cfg); } catch (InvalidPayloadException e) { throw new GenericFileOperationFailedException("Cannot store file: " + name, e); } catch (IOException e) {
