You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Raphaël Luta (JIRA)" <ji...@apache.org> on 2010/09/21 22:00:40 UTC

[jira] Updated: (CAMEL-3144) camel-ftp: fileExist=Fail not honored when producer works in FTP root path

     [ https://issues.apache.org/activemq/browse/CAMEL-3144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raphaël Luta updated CAMEL-3144:
--------------------------------

    Attachment: FileUtil.patch

> camel-ftp: fileExist=Fail not honored when producer works in FTP root path
> --------------------------------------------------------------------------
>
>                 Key: CAMEL-3144
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3144
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core, camel-ftp
>    Affects Versions: 2.4.0
>         Environment: Camel on Linux; IIS FTP server 
>            Reporter: Raphaël Luta
>         Attachments: FileUtil.patch
>
>
> when using a route with ftp producer such as :
>  <to uri="ftp://user@host/?fileExist=Fail&fileName=test&password=mypass" />
> The route will not correctly fail if the fileName already exists.
> It will work in any sub-directory:
>  <to uri="ftp://user@host/mydir?fileExist=Fail&fileName=test&password=mypass" />
> The root cause of the bug is an incorrect test in org.apache.camel.util.FileUtil.onlyPath() in component camel-core.
> This method returns null when the parameter string is "/". It should return "/".
> The attached patch fixes the issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.