camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: Files cannot be moved on FTP
Date Fri, 08 Feb 2013 12:32:34 GMT
We have a JIRA for this issue and it should already be fixed in Camel
2.10.4-SNAPSHOT, if I remember right.
If not, feel free to reopen it...

Sent from a mobile device
Am 07.02.2013 15:59 schrieb "Christian Schäfer" <syrious3000@yahoo.de>:

> Hi Filipp,
>
> thanks for testing..I just adapted your code to my use case and keep
> getting the described behaviour
> (no file moving with 2.10.3, 2.10.4-SNAPSHOT ; moving works with 2.10.2)
>
> The anonymized test case:
>
>     @Test
>     public void testFTPMove() throws Exception{
>         context.addRoutes(new RouteBuilder() {
>             @Override
>             public void configure() throws Exception {
>                 from("ftp://user@ftpserver.com:21" +
>                         "/folder/subfolder/" +
>                         "?password=mypassword" +
>                         "&ftpClient.dataTimeout=30000" +
>                         "&binary=true" +
>                         "&move=.success" +
>                         "&antInclude=file*.txt")
>                 .log("${body}");
>             }
>         });
>         Thread.sleep(3000);
>         context.stop();
>     }
>
>
>
> ________________________________
>  Von: Filippo Balicchia <fbalicchia@gmail.com>
> An: Christian Schäfer <syrious3000@yahoo.de>
> Gesendet: 11:58 Donnerstag, 7.Februar 2013
> Betreff: Re: Files cannot be moved on FTP
>
> Hi Christian,
>
> I am unable to give you an idea to solve the problem in a clean way
>
> with this piece of code in my environment works with 2.10.2 and 2.10.3.
> public class ftpExample {
>
>     protected static String getDownloadFtpUrl() {
>         return "ftp://@:"
>                 + 21
>                 +
> "?password=<password>&ftpClient.dataTimeout=30000&binary=true&move=.downloadfolder";
>     }
>
>     public static void main(String args[]) throws Exception {
>         CamelContext context = new DefaultCamelContext();
>
>         context.addRoutes(new RouteBuilder() {
>             String fileUrl = "file:/tmp/download/";
>
>             @Override
>             public void configure() throws Exception {
>                 from(getDownloadFtpUrl()).to(fileUrl);
>
>             }
>         });
>
>         context.start();
>         Thread.sleep(1000000);
>
>         context.stop();
>     }
> }
>
>
>
> Client camel route is installed on linuxbox and ftp server is
> installed on windows box
> and use http://mina.apache.org/ftpserver-project/index.html
>
>
> Could you please share your endpoint conf
> I have to migrate too short routes from version 2.10.2 to 2.10.3 ;-)
>
> Regards
> --Filippo
>
>
>
>
> 2013/2/7 Christian Schäfer <syrious3000@yahoo.de>:
> > Sure the ftp user got permissions to write and move.
> >
> > Btw. I just tried camel version 2.10.2 and it works..but it would be
> better
> > to get it working on 2.10.3 because all routes were tested on this
> version.
> >
> > --
> > Christian
> > ________________________________
> > Von: Filippo Balicchia <fbalicchia@gmail.com>
> > An: users@camel.apache.org; Christian Schäfer <syrious3000@yahoo.de>
> > Gesendet: 11:02 Donnerstag, 7.Februar 2013
> > Betreff: Re: Files cannot be moved on FTP
> >
> > Hi Christian,
> >
> > I try move directive with camel-ftp 2.10.3 and It works for me.
> >
> > Stupid question
> > Do you have write permissions on  sever ?
> > Regards
> >
> > --Filippo
> >
> > 2013/2/7 Christian Schäfer <syrious3000@yahoo.de>:
> >> Hello,
> >>
> >> I'm reading files from a ftp server with ftp camel component (camel
> >> version 2.10.3) by pattern using antInclude=file*.txt
> >> Reading works but after processing the files cannot be moved to the
> folder
> >> specified by "move" or  "moveFailed".
> >> Instead it logs:
> >>
> >> Cannot change directory to: \\. Code: 550]:
> >> org.apache.camel.component.file.GenericFileOperationFailedException:
> File
> >> operation failed: 550 Failed to change directory.
> >>
> >> As I expected that it's related to the problem described in:
> >>
> >>
> http://mail-archives.apache.org/mod_mbox/camel-users/201301.mbox/%3CCAF8t5Xt222i+WfuaswfdAdyN=8p-K62TXD7ucyWsY_YjcvMjOQ@mail.gmail.com%3E
> >>        https://issues.apache.org/jira/browse/CAMEL-5989
> >>
> >> I tried camel version 2.10.4-SNAPSHOT but the problem persists.
> >>
> >> The ftp user I'm using has the requried permission to move files because
> >> moving files works with ftp clients (filezilla, total commander)
> >>
> >> Any suggestion to resolve this, please?
> >>
> >>
> >> regards,
> >> Christian
> >
> >

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message