You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Grzegorz Grzybek (JIRA)" <ji...@apache.org> on 2015/06/08 11:36:00 UTC

[jira] [Created] (CAMEL-8844) Treat absolute FTP directories as invalid and convert to relative

Grzegorz Grzybek created CAMEL-8844:
---------------------------------------

             Summary: Treat absolute FTP directories as invalid and convert to relative
                 Key: CAMEL-8844
                 URL: https://issues.apache.org/jira/browse/CAMEL-8844
             Project: Camel
          Issue Type: Improvement
          Components: camel-ftp
    Affects Versions: 2.15.2
            Reporter: Grzegorz Grzybek
            Assignee: Grzegorz Grzybek
             Fix For: 2.16.0


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|http://camel.apache.org/ftp2.html]:
bq. 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:
{noformat}
2015-06-08 09:52:41,304 [main           ] WARN  FtpUtils                       - FtpComponent doesn't support absolute paths, "//foo" will be converted to "foo".
{noformat}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)