camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CAMEL-10713) SCP not handling errors for failed transfers correctly
Date Wed, 18 Jan 2017 08:26:27 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-10713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen reassigned CAMEL-10713:
-----------------------------------

    Assignee: Claus Ibsen

> SCP not handling errors for failed transfers correctly
> ------------------------------------------------------
>
>                 Key: CAMEL-10713
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10713
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jsch
>            Reporter: Patrick McGloin
>            Assignee: Claus Ibsen
>             Fix For: 2.17.6, 2.18.2, 2.19.0
>
>
> If I try to transfer a file to a directory that does not exist using Camel SCP I see
a warning like this in the log:
> [scp] WARN scp: /home/user/scp/1234: No such file or directory
> It looks like the code says that Camel will just log a warning when such an error occurs.
There is no exception in the code, so it looks like the file was transferred when it was not.
> https://github.com/apache/camel/blob/52a739feb9da8acd29067304c7c8356bbc5ef4dd/components/camel-jsch/src/main/java/org/apache/camel/component/scp/ScpOperations.java#L347
> The error codes for SCP are:
> 1 General error in file copy 
> 2 Destination is not directory, but it should be 
> http://support.attachmate.com/techdocs/2116.html
> The fix should have the SCP Endpoint raise an error if the return code is not 0.  
> See the following discussion.  
> http://camel.465427.n5.nabble.com/Camel-SCP-Warnings-td5792552.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message