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

root-Path handling for SFTP on windows bug

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.23.0
    • Fix Version/s: 2.22.3, 2.23.1, 2.24.0
    • Component/s: camel-ftp
    • Labels:
      None
    • Environment:

      2.23.0 / executing on windows jdk8 / remote sftp server linux

       

    • Estimated Complexity:
      Unknown
    • Flags:
      Important

      Description

      In SftpOperations.java the commit 0d3612672f2927d0428c2b79686759c16be88791
      has introduced a remoting bug when running on windows and connecting to sftp server.

      If the sfpt/camel is running on windows, then it assumes that the path include a "root-path" like "C://" which is not necessarily true for sftp connections. 
      So instead of "/" it creates a root path of "/hom" when working with an sftp path like "/home/jkleemann/transfer/....:" and fails when trying to change directory to this root path.

      see https://github.com/apache/camel/commit/0d3612672f2927d0428c2b79686759c16be88791
      for the changes

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                onders Onder Sezgin
                Reporter:
                jkleemann Jens Kleemann
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m