Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12166

FTPConsumer - no disconnect if polling files fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 2.16.2
    • 2.21.0
    • camel-ftp
    • None
    • We are using Camel 2.16.2  as part of ServiceMix 6.1.1

    • Unknown

    Description

      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.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            oklimberg Oliver Limberg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: