Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 16161 invoked from network); 8 Nov 2010 14:03:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Nov 2010 14:03:58 -0000 Received: (qmail 5455 invoked by uid 500); 8 Nov 2010 14:04:30 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 5327 invoked by uid 500); 8 Nov 2010 14:04:27 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 5304 invoked by uid 500); 8 Nov 2010 14:04:26 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 5090 invoked by uid 99); 8 Nov 2010 14:04:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 14:04:26 +0000 X-ASF-Spam-Status: No, hits=-1998.7 required=10.0 tests=ALL_TRUSTED,URI_HEX X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 14:04:24 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oA8E427h020581 for ; Mon, 8 Nov 2010 14:04:02 GMT Message-ID: <22610859.11921289225042231.JavaMail.jira@thor> Date: Mon, 8 Nov 2010 09:04:02 -0500 (EST) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Issue Comment Edited: (CAMEL-3309) Stepwise change of directory unfit for production (ftp/ftps/sftp) In-Reply-To: <25114838.6221288858079968.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=63165#action_63165 ] Claus Ibsen edited comment on CAMEL-3309 at 11/8/10 9:02 AM: ------------------------------------------------------------- I have updated the wiki - your note - the fact that stepwise is meant for the consumer, but the fact that the producer may use CD if you upload a file and have autoCreate=true Now we are left with finding a good name for this new {{stepwise}} option. It may not even have to be a boolean, we can use a String so we can introduce different modes in the future - consumerMode - consumerChangeDirectoryMode - mode - changeDirectoryMode - etc. And then have current values for the option - default - stepwise was (Author: davsclaus): I have updated the wiki - your note - the fact that stepwise is meant for the consumer, but the fact that the producer may use CD if you upload a file and have autoCreate=true Now we are left with finding a good name for this new {{stepwise}} option. It may not even have to be a boolean, we can use a String so we can introduce different modes in the future - consumerMode - consumerChangeDirectoryMode - mode - changeDirectoryMode - etc. > Stepwise change of directory unfit for production (ftp/ftps/sftp) > ----------------------------------------------------------------- > > Key: CAMEL-3309 > URL: https://issues.apache.org/activemq/browse/CAMEL-3309 > Project: Apache Camel > Issue Type: Improvement > Components: camel-ftp > Affects Versions: 2.5.0 > Reporter: Bengt Rodehav > Assignee: Claus Ibsen > Fix For: 2.6.0 > > Attachments: camel-ftp.patch > > > In Camel 2.5, the logic for changing directory for ftp/ftps/sftp has changed in order to fix the problems discussed in the following thread: > http://camel.465427.n5.nabble.com/How-to-change-directory-while-using-sftp-component-td2806817.html#a2807611 > In Camel 2.5 changing of the remote directory is now done in a stepwise manner. This is a strategy not fit for production since it assumes that the logged in ftp/ftps/sftp user has access to all intermediate directories all the way down to its home directory. This is rarely the case. > Also, when testing ftp/sftp on Serv-U, a Windows based ftp/ftps/sftp server, it turns out that it reports the current directory in a "Windows way", e g /C:/temp/servu/user/sample/file2sftp. The topmost folder is not "/" but "/C:". This also breaks the new stepwise way of changing directory since it always tries to change to "/" if an absolute path is used. > I propose to introduce a configuration property to enable/disable stepwise changing of directories where disabling it should be the default. I will upload a patch shortly. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.