You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by preben <pr...@dr.dk> on 2010/09/20 08:37:55 UTC

anonymous FTP login fails

Hi

Seems that there is a bug if you try to use ftp component with anonymous
login eg.
from("ftp://myftphost/myfolder").to("file://target/transfer");

Camel 2.4.0 will try to do a anonymous login with user=anonymous and
password = null with the result that you get a reply code 500 when sending
null as password.

The workaround is to set up the route like:
from("ftp://anonymous@myftphost/myfolder?password=").to("file://target/transfer");

Seems that Camel-ftp should send "" as password instead of null.

Thanks 
Preben
-- 
View this message in context: http://camel.465427.n5.nabble.com/anonymous-FTP-login-fails-tp2846235p2846235.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: anonymous FTP login fails

Posted by preben <pr...@dr.dk>.
Super !!
-- 
View this message in context: http://camel.465427.n5.nabble.com/anonymous-FTP-login-fails-tp2846235p2846269.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: anonymous FTP login fails

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Thanks for reporting. I have fixed it
https://issues.apache.org/activemq/browse/CAMEL-3137


On Mon, Sep 20, 2010 at 8:37 AM, preben <pr...@dr.dk> wrote:
>
> Hi
>
> Seems that there is a bug if you try to use ftp component with anonymous
> login eg.
> from("ftp://myftphost/myfolder").to("file://target/transfer");
>
> Camel 2.4.0 will try to do a anonymous login with user=anonymous and
> password = null with the result that you get a reply code 500 when sending
> null as password.
>
> The workaround is to set up the route like:
> from("ftp://anonymous@myftphost/myfolder?password=").to("file://target/transfer");
>
> Seems that Camel-ftp should send "" as password instead of null.
>
> Thanks
> Preben
> --
> View this message in context: http://camel.465427.n5.nabble.com/anonymous-FTP-login-fails-tp2846235p2846235.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus