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

Stepwise change of directory unfit for production (ftp/ftps/sftp)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 2.6.0
    • camel-ftp
    • None

    Description

      In Camel 2.5, the logic for changing directory for ftp/ftps/sftp has changed in order to fix the problems discussed in the following thread:

      http://camel.465427.n5.nabble.com/How-to-change-directory-while-using-sftp-component-td2806817.html#a2807611

      In Camel 2.5 changing of the remote directory is now done in a stepwise manner. This is a strategy not fit for production since it assumes that the logged in ftp/ftps/sftp user has access to all intermediate directories all the way down to its home directory. This is rarely the case.

      Also, when testing ftp/sftp on Serv-U, a Windows based ftp/ftps/sftp server, it turns out that it reports the current directory in a "Windows way", e g /C:/temp/servu/user/sample/file2sftp. The topmost folder is not "/" but "/C:". This also breaks the new stepwise way of changing directory since it always tries to change to "/" if an absolute path is used.

      I propose to introduce a configuration property to enable/disable stepwise changing of directories where disabling it should be the default. I will upload a patch shortly.

      Attachments

        1. camel-ftp.patch
          3 kB
          Bengt Rodehav

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              rodehav Bengt Rodehav
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: