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 2008/04/02 07:05:38 UTC

[jira] Issue Comment Edited: (CAMEL-420) FTPConsumer asii filetypes does not use IOConverter toString out-of-the-box

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

davsclaus edited comment on CAMEL-420 at 4/1/08 10:05 PM:
------------------------------------------------------------

Does camel FTP support using the remote FTP filename to use as filename when writing to a file if not configured to a fixed filename using the header propery

{code}
                String fileUrl = "file:target/ftptest/?noop=true";
                from(ftpUrl).setHeader(FileComponent.HEADER_FILE_NAME, constant("deleteme.jpg")).
                        to(fileUrl, "mock:result");
{code}

Does it work with the setHeader? And use the remote filename from the FTP Server?

No it does not: camel tries to store the file using concatted filename as:
java.io.FileNotFoundException: target\ftptest\localhost:\tmp4\camel\logo.jpeg (The filename, directory name, or volume label syntax is incorrect) 

      was (Author: davsclaus):
    Does camel FTP support using the remote FTP filename to use as filename when writing to a file if not configured to a fixed filename using the header propery

{code}
                String fileUrl = "file:target/ftptest/?noop=true";
                from(ftpUrl).setHeader(FileComponent.HEADER_FILE_NAME, constant("deleteme.jpg")).
                        to(fileUrl, "mock:result");
{code}

Does it work with the setHeader? And use the remote filename from the FTP Server?
  
> FTPConsumer asii filetypes does not use IOConverter toString out-of-the-box
> ---------------------------------------------------------------------------
>
>                 Key: CAMEL-420
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-420
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 1.3.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> See this forum:
> http://www.nabble.com/FTP-to-FILE-td16354813s22882.html
> As a workaround you have to use convertBodyTo(String.class) to let it work out of the box.

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