Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E2EF3D2F5 for ; Fri, 8 Feb 2013 12:33:03 +0000 (UTC) Received: (qmail 80299 invoked by uid 500); 8 Feb 2013 12:33:03 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 80047 invoked by uid 500); 8 Feb 2013 12:33:00 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 80032 invoked by uid 99); 8 Feb 2013 12:33:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2013 12:33:00 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.mueller@gmail.com designates 209.85.214.172 as permitted sender) Received: from [209.85.214.172] (HELO mail-ob0-f172.google.com) (209.85.214.172) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2013 12:32:55 +0000 Received: by mail-ob0-f172.google.com with SMTP id tb18so3857393obb.31 for ; Fri, 08 Feb 2013 04:32:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=DgFTfX18UseWqKW1lSQ9+4oIoiDldkh/0j5yMl9ZeeU=; b=YeCAjhVk7f2x0uRAJO0eUAohAdcV+nfU3014WdoXTOBSua3ZHNI2j249AWi4LfPGel oiT5fNKg1mJqHGBmxNbuI/BlGqaTUDomHK26y+h5ffHbWy1anI3k9U3atJhqz5tIljcE Al+Ivw7l2YA+/0lGFVEnu3ShU7+R9z8gwBwRNT/P328SIZT7wh/n26orjMtECXsKL9pF dZPCrIO/KOcKyc2IQP4D/LbdH/MnpzYYgi2SZb7rua05EukXu23DB/eWKm9oo0CF9Zem qDeo9SH4emUiy2xV2uF0lUfhlqUkXBWHny1CuMrPS413at9sAA7/mUX3Zs8Q1FgiOQ4d vNHg== MIME-Version: 1.0 X-Received: by 10.60.170.165 with SMTP id an5mr3852750oec.24.1360326754878; Fri, 08 Feb 2013 04:32:34 -0800 (PST) Received: by 10.182.138.65 with HTTP; Fri, 8 Feb 2013 04:32:34 -0800 (PST) Received: by 10.182.138.65 with HTTP; Fri, 8 Feb 2013 04:32:34 -0800 (PST) In-Reply-To: <1360249157.44975.YahooMailNeo@web171506.mail.ir2.yahoo.com> References: <1360230779.59203.YahooMailNeo@web171504.mail.ir2.yahoo.com> <1360231873.10296.YahooMailNeo@web171506.mail.ir2.yahoo.com> <1360249157.44975.YahooMailNeo@web171506.mail.ir2.yahoo.com> Date: Fri, 8 Feb 2013 13:32:34 +0100 Message-ID: Subject: Re: Files cannot be moved on FTP From: =?ISO-8859-1?Q?Christian_M=FCller?= To: users@camel.apache.org Content-Type: multipart/alternative; boundary=bcaec54b481800c54004d535c14e X-Virus-Checked: Checked by ClamAV on apache.org --bcaec54b481800c54004d535c14e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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=E4fer" : > 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=3Dmypassword" + > "&ftpClient.dataTimeout=3D30000" + > "&binary=3Dtrue" + > "&move=3D.success" + > "&antInclude=3Dfile*.txt") > .log("${body}"); > } > }); > Thread.sleep(3000); > context.stop(); > } > > > > ________________________________ > Von: Filippo Balicchia > An: Christian Sch=E4fer > 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=3D&ftpClient.dataTimeout=3D30000&binary=3Dtrue&move= =3D.downloadfolder"; > } > > public static void main(String args[]) throws Exception { > CamelContext context =3D new DefaultCamelContext(); > > context.addRoutes(new RouteBuilder() { > String fileUrl =3D "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=E4fer : > > 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 > > An: users@camel.apache.org; Christian Sch=E4fer > > 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=E4fer : > >> Hello, > >> > >> I'm reading files from a ftp server with ftp camel component (camel > >> version 2.10.3) by pattern using antInclude=3Dfile*.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/%3CCAF8t= 5Xt222i+WfuaswfdAdyN=3D8p-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 becau= se > >> moving files works with ftp clients (filezilla, total commander) > >> > >> Any suggestion to resolve this, please? > >> > >> > >> regards, > >> Christian > > > > --bcaec54b481800c54004d535c14e--