[ 
https://issues.apache.org/jira/browse/CAMEL-12166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16332298#comment-16332298
 ] 

Claus Ibsen commented on CAMEL-12166:
-------------------------------------

It end up calling some rollback code, that performs the disconnect. Its a bit 
more complicated as ftp extends file component. But as said you use an old 
version of Camel we dont support anymore.

> 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)

Reply via email to