[
https://issues.apache.org/jira/browse/CAMEL-9146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sascha Dirbach updated CAMEL-9146:
----------------------------------
Attachment: camel-9146.patch
Patch based on 2.10.0 git tag.
- Fixes actual bug & includes test case
- Fixes problems in SftpSimpleConsumeTest, SftpServerTestSupport and
SftpConsumer related to absolute & relative file path handling when executing
the tests
> SFTP Consumer does not work with disconnect and file-rename options set
> -----------------------------------------------------------------------
>
> Key: CAMEL-9146
> URL: https://issues.apache.org/jira/browse/CAMEL-9146
> Project: Camel
> Issue Type: Bug
> Components: camel-ftp
> Affects Versions: 2.10.0
> Reporter: Sascha Dirbach
> Attachments: camel-9146.patch
>
>
> A camel route with a from like this:
> from("sftp://localhost:22/?username=...&password=...&disconnect=true&preMove=working&move=completed&moveFailed=fail")
> fails with an Exception, when the file is moved to the completed or to the
> fail directory, as the Consumer closes the connection, when disconnect is set
> to true. This is because, the commit or rollback of a file only occurs when
> the message was completely processed.
> The problem can be avoided, when a Wrapper for the
> GenericFileRenameProcessStrategy checks, whether the connection is still open
> or reconnects, if its not.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)