Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3FEEAD18B for ; Thu, 20 Dec 2012 12:45:41 +0000 (UTC) Received: (qmail 87354 invoked by uid 500); 20 Dec 2012 12:45:41 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 86938 invoked by uid 500); 20 Dec 2012 12:45:39 -0000 Mailing-List: contact commits-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 commits@camel.apache.org Received: (qmail 86911 invoked by uid 99); 20 Dec 2012 12:45:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2012 12:45:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2012 12:45:37 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 53BBE23889EC; Thu, 20 Dec 2012 12:45:17 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1424437 - /camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java Date: Thu, 20 Dec 2012 12:45:17 -0000 To: commits@camel.apache.org From: bvahdat@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121220124517.53BBE23889EC@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bvahdat Date: Thu Dec 20 12:45:16 2012 New Revision: 1424437 URL: http://svn.apache.org/viewvc?rev=1424437&view=rev Log: CAMEL-5792: Fixed the regression by SftpProducerFileWithPathNoStepwiseTest. Modified: camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java Modified: camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java?rev=1424437&r1=1424436&r2=1424437&view=diff ============================================================================== --- camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java (original) +++ camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java Thu Dec 20 12:45:16 2012 @@ -383,8 +383,9 @@ public class SftpOperations implements R return; } - // must compact path so FTP server can traverse correctly - path = FileUtil.compactPath(path); + // must compact path so SFTP server can traverse correctly, make use of the '/' + // separator because JSch expects this as the file separator even on Windows + path = FileUtil.compactPath(path, '/'); // not stepwise should change directory in one operation if (!endpoint.getConfiguration().isStepwise()) {