camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-1585) SFTP GenericFileProducer.createFileName produces OS normalized file name, that doesn't work with SFTP
Date Wed, 06 May 2009 05:33:38 GMT

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

Willem Jiang commented on CAMEL-1585:
-------------------------------------

I found there are something wrong on the RemoteFileProducer side if GenericFileProducer uses
the File.separator and FileUtil.normalizedPath.
Just wonder why the FTP unit test can't find this kind of error. I will dig the code for it.


> 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.


Mime
View raw message