You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2009/05/06 06:40:38 UTC

[jira] Commented: (CAMEL-1585) SFTP GenericFileProducer.createFileName produces OS normalized file name, that doesn't work with SFTP

    [ https://issues.apache.org/activemq/browse/CAMEL-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51520#action_51520 ] 

Claus Ibsen commented on CAMEL-1585:
------------------------------------

Willem. I guess we need an option on FTP endpoint to define the / or \ separator to use.
Unit testing with the mocked FTP server might not work on windows with the \ separator.

But for FTP the / is the proper separator, even on Windows :)


> SFTP GenericFileProducer.createFileName produces OS normalized file name, that doesn't work with SFTP
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1585
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1585
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0-M1
>         Environment: Windows XP
>            Reporter: Darryl Smith
>            Assignee: Willem Jiang
>
> The use of File.separator and FileUtil.normalizePath in GenericFileProducer.createFileName produce a OS normalized file name, that doesn't work with SFTP
> e.g. outbound\\out_20090501_091940_ACC.txt which will not work produce a file called outboundout_20090501_091940_ACC.txt
> The proper name should be outbound/out_20090501_091940_ACC.txt

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