[
https://issues.apache.org/jira/browse/CAMEL-12166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16332278#comment-16332278
]
Oliver Limberg commented on CAMEL-12166:
----------------------------------------
I checked the source code on git and could not find any changes regarding a
disconnect in method poll() of class GenericFileConsumer before opening this
issue.
Updating Camel is not an option at the moment. We already tried to substitute
ServiceMix 6.1.1 with the latest version of Karaf and Camel with no success.
> FTPConsumer - no disconnect if polling files fails
> --------------------------------------------------
>
> Key: CAMEL-12166
> URL: https://issues.apache.org/jira/browse/CAMEL-12166
> Project: Camel
> Issue Type: Bug
> Components: camel-ftp
> Affects Versions: 2.16.2
> Environment: We are using Camel 2.16.2 as part of ServiceMix 6.1.1
> Reporter: Oliver Limberg
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 2.21.0
>
>
> We encountered an issue downoading files from various different ftp servers.
> If listing the files to consume fails for whatever reason, the FTP client
> does not disconnect from the server, even if disconnect=true is specified in
> the endpoint URL.
> This leads to the problem, that upon the next poll, the connection ist still
> open and the component starts to navigate stepwise to the target folder which
> will fail, because we are not in the home folder of the FTP user anymore.
> This leads to an GenericFileOperationFailedException, which will again cause
> the poll to fail without a disconnect. From now on, polling this endpoint
> will fail until restarting the containing route.
>
> Adding stepwise=false as an workaround did not work in our case because one
> of teh external FTP servers will return absolute paths when calling the list
> command, resulting in an error when trying to download the files.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)