You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Ioan Eugen Stan <st...@gmail.com> on 2013/05/09 13:34:41 UTC

camel producer ftp bug

Hello,

I'm using camel-2.11.0 with camel ftp for a route and I'm hitting the
Change directory bug, but only when I'm writing to FTP. I'm using
vsftpd_3.0.2-3_amd64.deb on Debian Wheezy.

The route is:
              from("ftp://localhost/in?username=source-of-files&password=pass&stepwise=false&binary=true&idempotent=true")

.to("ftp://localhost/out?username=target-of-files&password=pass");

 I've enabled logging on the FTP server and it seems it has a strange
behavior: it does an extra Change Working Directory. I tried with
using stepwise but with no success.

Using stepwise=false;

Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP command: Client
"127.0.0.1", "TYPE A"
Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP response:
Client "127.0.0.1", "200 Switching to ASCII mode."
Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP command: Client
"127.0.0.1", "PWD"
Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP response:
Client "127.0.0.1", "257 "/home/target-of-files""
Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP command: Client
"127.0.0.1", "CWD out"
Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP response:
Client "127.0.0.1", "250 Directory successfully changed."
Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP command: Client
"127.0.0.1", "CWD "/home/target-of-files""
Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP response:
Client "127.0.0.1", "550 Failed to change directory."
Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP command: Client
"127.0.0.1", "QUIT"

Using stepwise=true;

Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP response:
Client "127.0.0.1", "230 Login successful."
Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP command: Client
"127.0.0.1", "TYPE A"
Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP response:
Client "127.0.0.1", "200 Switching to ASCII mode."
Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP command: Client
"127.0.0.1", "PWD"
Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP response:
Client "127.0.0.1", "257 "/home/target-of-files""
Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP command: Client
"127.0.0.1", "CWD out"
Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP response:
Client "127.0.0.1", "250 Directory successfully changed."
Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP command: Client
"127.0.0.1", "CWD ""
Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP response:
Client "127.0.0.1", "550 Failed to change directory."
Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP command: Client
"127.0.0.1", "QUIT"

I also attached the log file, I hope it doesn't get filtered out. Can
anybody confirm this and suggest a solution?

Thanks,

--
Ioan Eugen Stan
0720 898 747

Re: camel producer ftp bug

Posted by Bengt Rodehav <be...@rodehav.com>.
The bug I found was in camel-core and I think it affects ftp as well. Not
sure if you have found the exact same bug (I hope so otherwise we have yet
another bug). You could try the patch I attached to the JIRA and see if
your problems go away.

/Bengt


2013/5/10 Ioan Eugen Stan <st...@gmail.com>

> Hello,
>
> I'm using plain FTP and I'm uploading into my home folder. You can
> check out the entire log here [1]. They might be related but not sure
> yet. I will have to investigate sometime late next week.
>
> Thanks,
>
> [1] https://paste.apache.org/9CHw
>
> On Fri, May 10, 2013 at 10:25 AM, Bengt Rodehav <be...@rodehav.com> wrote:
> > I wonder if this is also due to the issue I found:
> >
> > https://issues.apache.org/jira/browse/CAMEL-6309
> >
> > BTW, your logfile got lost. Perhaps you can inline parts of it in a mail.
> >
> > /Bengt
> >
> >
> >
> > 2013/5/9 Ioan Eugen Stan <st...@gmail.com>
> >
> >> Hello,
> >>
> >> I'm using camel-2.11.0 with camel ftp for a route and I'm hitting the
> >> Change directory bug, but only when I'm writing to FTP. I'm using
> >> vsftpd_3.0.2-3_amd64.deb on Debian Wheezy.
> >>
> >> The route is:
> >>               from("
> >>
> ftp://localhost/in?username=source-of-files&password=pass&stepwise=false&binary=true&idempotent=true
> >> ")
> >>
> >> .to("ftp://localhost/out?username=target-of-files&password=pass");
> >>
> >>  I've enabled logging on the FTP server and it seems it has a strange
> >> behavior: it does an extra Change Working Directory. I tried with
> >> using stepwise but with no success.
> >>
> >> Using stepwise=false;
> >>
> >> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP command: Client
> >> "127.0.0.1", "TYPE A"
> >> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP response:
> >> Client "127.0.0.1", "200 Switching to ASCII mode."
> >> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP command: Client
> >> "127.0.0.1", "PWD"
> >> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP response:
> >> Client "127.0.0.1", "257 "/home/target-of-files""
> >> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP command: Client
> >> "127.0.0.1", "CWD out"
> >> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP response:
> >> Client "127.0.0.1", "250 Directory successfully changed."
> >> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP command: Client
> >> "127.0.0.1", "CWD "/home/target-of-files""
> >> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP response:
> >> Client "127.0.0.1", "550 Failed to change directory."
> >> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP command: Client
> >> "127.0.0.1", "QUIT"
> >>
> >> Using stepwise=true;
> >>
> >> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP response:
> >> Client "127.0.0.1", "230 Login successful."
> >> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP command: Client
> >> "127.0.0.1", "TYPE A"
> >> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP response:
> >> Client "127.0.0.1", "200 Switching to ASCII mode."
> >> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP command: Client
> >> "127.0.0.1", "PWD"
> >> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP response:
> >> Client "127.0.0.1", "257 "/home/target-of-files""
> >> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP command: Client
> >> "127.0.0.1", "CWD out"
> >> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP response:
> >> Client "127.0.0.1", "250 Directory successfully changed."
> >> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP command: Client
> >> "127.0.0.1", "CWD ""
> >> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP response:
> >> Client "127.0.0.1", "550 Failed to change directory."
> >> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP command: Client
> >> "127.0.0.1", "QUIT"
> >>
> >> I also attached the log file, I hope it doesn't get filtered out. Can
> >> anybody confirm this and suggest a solution?
> >>
> >> Thanks,
> >>
> >> --
> >> Ioan Eugen Stan
> >> 0720 898 747
> >>
>
>
>
> --
> Ioan Eugen Stan
> 0720 898 747
>

Re: camel producer ftp bug

Posted by Ioan Eugen Stan <st...@gmail.com>.
Hello,

I'm using plain FTP and I'm uploading into my home folder. You can
check out the entire log here [1]. They might be related but not sure
yet. I will have to investigate sometime late next week.

Thanks,

[1] https://paste.apache.org/9CHw

On Fri, May 10, 2013 at 10:25 AM, Bengt Rodehav <be...@rodehav.com> wrote:
> I wonder if this is also due to the issue I found:
>
> https://issues.apache.org/jira/browse/CAMEL-6309
>
> BTW, your logfile got lost. Perhaps you can inline parts of it in a mail.
>
> /Bengt
>
>
>
> 2013/5/9 Ioan Eugen Stan <st...@gmail.com>
>
>> Hello,
>>
>> I'm using camel-2.11.0 with camel ftp for a route and I'm hitting the
>> Change directory bug, but only when I'm writing to FTP. I'm using
>> vsftpd_3.0.2-3_amd64.deb on Debian Wheezy.
>>
>> The route is:
>>               from("
>> ftp://localhost/in?username=source-of-files&password=pass&stepwise=false&binary=true&idempotent=true
>> ")
>>
>> .to("ftp://localhost/out?username=target-of-files&password=pass");
>>
>>  I've enabled logging on the FTP server and it seems it has a strange
>> behavior: it does an extra Change Working Directory. I tried with
>> using stepwise but with no success.
>>
>> Using stepwise=false;
>>
>> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP command: Client
>> "127.0.0.1", "TYPE A"
>> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP response:
>> Client "127.0.0.1", "200 Switching to ASCII mode."
>> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP command: Client
>> "127.0.0.1", "PWD"
>> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP response:
>> Client "127.0.0.1", "257 "/home/target-of-files""
>> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP command: Client
>> "127.0.0.1", "CWD out"
>> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP response:
>> Client "127.0.0.1", "250 Directory successfully changed."
>> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP command: Client
>> "127.0.0.1", "CWD "/home/target-of-files""
>> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP response:
>> Client "127.0.0.1", "550 Failed to change directory."
>> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP command: Client
>> "127.0.0.1", "QUIT"
>>
>> Using stepwise=true;
>>
>> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP response:
>> Client "127.0.0.1", "230 Login successful."
>> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP command: Client
>> "127.0.0.1", "TYPE A"
>> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP response:
>> Client "127.0.0.1", "200 Switching to ASCII mode."
>> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP command: Client
>> "127.0.0.1", "PWD"
>> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP response:
>> Client "127.0.0.1", "257 "/home/target-of-files""
>> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP command: Client
>> "127.0.0.1", "CWD out"
>> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP response:
>> Client "127.0.0.1", "250 Directory successfully changed."
>> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP command: Client
>> "127.0.0.1", "CWD ""
>> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP response:
>> Client "127.0.0.1", "550 Failed to change directory."
>> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP command: Client
>> "127.0.0.1", "QUIT"
>>
>> I also attached the log file, I hope it doesn't get filtered out. Can
>> anybody confirm this and suggest a solution?
>>
>> Thanks,
>>
>> --
>> Ioan Eugen Stan
>> 0720 898 747
>>



-- 
Ioan Eugen Stan
0720 898 747

Re: camel producer ftp bug

Posted by Bengt Rodehav <be...@rodehav.com>.
I wonder if this is also due to the issue I found:

https://issues.apache.org/jira/browse/CAMEL-6309

BTW, your logfile got lost. Perhaps you can inline parts of it in a mail.

/Bengt



2013/5/9 Ioan Eugen Stan <st...@gmail.com>

> Hello,
>
> I'm using camel-2.11.0 with camel ftp for a route and I'm hitting the
> Change directory bug, but only when I'm writing to FTP. I'm using
> vsftpd_3.0.2-3_amd64.deb on Debian Wheezy.
>
> The route is:
>               from("
> ftp://localhost/in?username=source-of-files&password=pass&stepwise=false&binary=true&idempotent=true
> ")
>
> .to("ftp://localhost/out?username=target-of-files&password=pass");
>
>  I've enabled logging on the FTP server and it seems it has a strange
> behavior: it does an extra Change Working Directory. I tried with
> using stepwise but with no success.
>
> Using stepwise=false;
>
> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP command: Client
> "127.0.0.1", "TYPE A"
> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP response:
> Client "127.0.0.1", "200 Switching to ASCII mode."
> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP command: Client
> "127.0.0.1", "PWD"
> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP response:
> Client "127.0.0.1", "257 "/home/target-of-files""
> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP command: Client
> "127.0.0.1", "CWD out"
> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP response:
> Client "127.0.0.1", "250 Directory successfully changed."
> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP command: Client
> "127.0.0.1", "CWD "/home/target-of-files""
> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP response:
> Client "127.0.0.1", "550 Failed to change directory."
> Thu May  9 14:21:02 2013 [pid 3] [target-of-files] FTP command: Client
> "127.0.0.1", "QUIT"
>
> Using stepwise=true;
>
> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP response:
> Client "127.0.0.1", "230 Login successful."
> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP command: Client
> "127.0.0.1", "TYPE A"
> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP response:
> Client "127.0.0.1", "200 Switching to ASCII mode."
> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP command: Client
> "127.0.0.1", "PWD"
> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP response:
> Client "127.0.0.1", "257 "/home/target-of-files""
> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP command: Client
> "127.0.0.1", "CWD out"
> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP response:
> Client "127.0.0.1", "250 Directory successfully changed."
> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP command: Client
> "127.0.0.1", "CWD ""
> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP response:
> Client "127.0.0.1", "550 Failed to change directory."
> Thu May  9 14:21:18 2013 [pid 3] [target-of-files] FTP command: Client
> "127.0.0.1", "QUIT"
>
> I also attached the log file, I hope it doesn't get filtered out. Can
> anybody confirm this and suggest a solution?
>
> Thanks,
>
> --
> Ioan Eugen Stan
> 0720 898 747
>