You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/06/25 13:54:51 UTC

[jira] Created: (CAMEL-2860) camel-ftp - Should use absolute paths, eg the leading / should always be included

camel-ftp - Should use absolute paths, eg the leading / should always be included
---------------------------------------------------------------------------------

                 Key: CAMEL-2860
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2860
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-ftp
    Affects Versions: 2.3.0, 2.2.0, 2.1.0, 2.0.0
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 2.4.0


FTP Servers expect clients to use absolute paths, so camel-ftp clients should not clip any leading /

We could consider adding a flag to preserve the old behavior to have people if they rely on the old behavior be able to switch that flag on.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-2860) camel-ftp - Should use absolute paths, eg the leading / should always be included

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-2860.
--------------------------------

    Resolution: Fixed

Use // slashes in the endpoint uri to denote an absolute starting path.

> camel-ftp - Should use absolute paths, eg the leading / should always be included
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-2860
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2860
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0, 2.1.0, 2.2.0, 2.3.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.4.0
>
>
> FTP Servers expect clients to use absolute paths, so camel-ftp clients should not clip any leading /
> We could consider adding a flag to preserve the old behavior to have people if they rely on the old behavior be able to switch that flag on.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2860) camel-ftp - Should use absolute paths, eg the leading / should always be included

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60297#action_60297 ] 

Claus Ibsen commented on CAMEL-2860:
------------------------------------

trunk: 958207.

You can now specify absolute paths on the endpoint uri, by using double / slashes. Since the first is part of the URI

{{ftp:admin:secret@someserver//foo}}

Notice how we use {{//}} in the uri above to denote an absolute starting path.

> camel-ftp - Should use absolute paths, eg the leading / should always be included
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-2860
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2860
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0, 2.1.0, 2.2.0, 2.3.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.4.0
>
>
> FTP Servers expect clients to use absolute paths, so camel-ftp clients should not clip any leading /
> We could consider adding a flag to preserve the old behavior to have people if they rely on the old behavior be able to switch that flag on.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2860) camel-ftp - Should use absolute paths, eg the leading / should always be included

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60296#action_60296 ] 

Claus Ibsen commented on CAMEL-2860:
------------------------------------

Looking into camel 1.6 I cannot see it send absolute paths.

It just change dir to current dir at first. And current dir is from the start /. 
And then cd into the starting directory (configured from the endpoint uri). 
So that together makes it appear as it works absolute.


Camel 2.x will not change into current dir at first.
But list files without changing current directory



> camel-ftp - Should use absolute paths, eg the leading / should always be included
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-2860
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2860
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0, 2.1.0, 2.2.0, 2.3.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.4.0
>
>
> FTP Servers expect clients to use absolute paths, so camel-ftp clients should not clip any leading /
> We could consider adding a flag to preserve the old behavior to have people if they rely on the old behavior be able to switch that flag on.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2860) camel-ftp - Should use absolute paths, eg the leading / should always be included

Posted by "Darren Davison (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60273#action_60273 ] 

Darren Davison commented on CAMEL-2860:
---------------------------------------

I think it's worth pointing out that this must have changed recently as camel-1.6 doesn't exhibit this problem, so the "old" behaviour is the correct behaviour that we should revert to.  

Most FTP clients send absolute paths to the server.  It is the server's responsibility to decide what absolute means (usually a protected FTP root dir is configured in the server and FTP clients cannot escape this regardless of paths used).  If the server allows full f/s access via FTP then that's either up to the server admin or a fault in the FTP server software.  Either way, it should *not* be down to camel-ftp to make unilateral, non-overridable, backwards-incompatible decisions about potential server software configuration.

Personally, I vote for this to be fixed and backported to current production versions.

> camel-ftp - Should use absolute paths, eg the leading / should always be included
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-2860
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2860
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0, 2.1.0, 2.2.0, 2.3.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.4.0
>
>
> FTP Servers expect clients to use absolute paths, so camel-ftp clients should not clip any leading /
> We could consider adding a flag to preserve the old behavior to have people if they rely on the old behavior be able to switch that flag on.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.