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

Treat absolute FTP directories as invalid and convert to relative

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.15.2
    • Fix Version/s: 2.16.0
    • Component/s: camel-ftp
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Currently there are issues when directory in (s)ftp(s) endpoint is absolute (or contains arbitrary number of leading slashes). Sometimes the path is normalized, sometimes don't and camel-ftp code can't find correct prefix in absolute path when retrieving remote file.

      Documentation says:

      Absolute path is not supported.

      I suggest normalizing the behavior and treating absolute FTP endpoint URI directories as relative. When URI contains absolute path, WARNing will be printed:

      2015-06-08 09:52:41,304 [main           ] WARN  FtpUtils                       - FtpComponent doesn't support absolute paths, "//foo" will be converted to "foo".
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gzres Grzegorz Grzybek
                Reporter:
                gzres Grzegorz Grzybek
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: