You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2013/07/27 19:17:21 UTC
[2/3] git commit: CAMEL-6571: camel-jsch may use wrong inputstream in
store file. Thanks to A. Engelmann for the patch.
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/b0e83a72
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/b0e83a72
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/b0e83a72
Branch: refs/heads/camel-2.11.x
Commit: b0e83a72b344825a4632a2b81370649099f00c03
Parents: a8a5af0
Author: Claus Ibsen <da...@apache.org>
Authored: Sat Jul 27 19:15:19 2013 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Sat Jul 27 19:16: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/b0e83a72/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) {