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/01 13:46:32 UTC
[jira] Created: (CAMEL-420) FTPConsumer asii filetypes does not use
IOConverter toString out-of-the-box
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
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.
[jira] Issue Comment Edited: (CAMEL-420) FTPConsumer asii filetypes
does not use IOConverter toString out-of-the-box
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Assigned: (CAMEL-420) FTPConsumer asii filetypes does not
use IOConverter toString out-of-the-box
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-420:
---------------------------------
Assignee: Claus Ibsen
> 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.
[jira] Commented: (CAMEL-420) FTPComponent - problems and
improvements
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42019#action_42019 ]
Claus Ibsen commented on CAMEL-420:
-----------------------------------
Comitted missing file converters to trunk so we can consume binary files (download binary files)
> FTPComponent - problems and improvements
> ----------------------------------------
>
> 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
> Fix For: 1.4.0
>
>
> See this forum:
> http://www.nabble.com/FTP-to-FILE-td16354813s22882.html
> Problems:
> - Using ASCII you need to use convertBodyTo(String.class) to let it work out of the box
> - Using BINARY we need some Type Converters to let it consume files from a FTP Server and store it as a File *Fixed*
> - You have to set the filename using the header in the configuration otherwise the filename can be wrong
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-420) FTPComponent - problems and
improvements
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42023#action_42023 ]
Claus Ibsen commented on CAMEL-420:
-----------------------------------
We are changing a default option on the FTPConsumer in Camel 1.4.
Camel 1.3
setNames=false
Camel 1.4
setNames=true
The issue is tracked in CAMEL-420.
The issue is that Camel in v1.3 or below does not default to use the filenames from the downloaded files from the FTP Server. So you as the end user have to explicity set a filename if you want to eg. store the downaloded file directly to a local file etc using the File component.
An example (Camel 1.3)
{code}
String fileUrl = "file:target/ftptest/?append=false&noop=true";
String ftpUrl =
"ftp://admin@localhost:21/tmp3/camel?password=admin&binary=false";
from(ftpUrl).setHeader(FileComponent.HEADER_FILE_NAME,
constant("deleteme.txt")).
convertBodyTo(String.class).to(fileUrl);
{code}
In the example above we have to set an filename using the setHeader option with the special key FileComponent.HEADER_FILE_NAME
If we just want to use the filename from the FTP Server we have to do this in Camel 1.3. Set the setNames option to true. So the ftpUrl is:
{code}
String ftpUrl =
"ftp://admin@localhost:21/tmp3/camel?password=admin&binary=false&consume
r.setNames=true";
{code}
In Camel 1.4 the default value of consumer.setNames is true as opposed to false in Camel 1.3
So in Camel 1.4 it works out of the box that Camel will use the filename from the FTP Server if you have not explicity set a new filename using the setHeader(FileComponent.HEADER_FILE_NAME, "mynewfilename.txt")
So the Camel 1.4 example is:
{code}
String fileUrl = "file:target/ftptest/?append=false&noop=true";
String ftpUrl =
"ftp://admin@localhost:21/tmp3/camel?password=admin&binary=false";
from(ftpUrl).convertBodyTo(String.class).to(fileUrl);
{code}
> FTPComponent - problems and improvements
> ----------------------------------------
>
> 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
> Fix For: 1.4.0
>
>
> See this forum:
> http://www.nabble.com/FTP-to-FILE-td16354813s22882.html
> Problems:
> - Using ASCII you need to use convertBodyTo(String.class) to let it work out of the box
> - Using BINARY we need some Type Converters to let it consume files from a FTP Server and store it as a File *Fixed*
> - You have to set the filename using the header in the configuration otherwise the filename can be wrong *Fixed*
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-420) FTPConsumer asii filetypes does not
use IOConverter toString out-of-the-box
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41959#action_41959 ]
Claus Ibsen commented on CAMEL-420:
-----------------------------------
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.
[jira] Issue Comment Edited: (CAMEL-420) FTPConsumer asii filetypes
does not use IOConverter toString out-of-the-box
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ 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:12 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)
To culprint: FileProducer.createFileName(Message msg) is bogus. It does not handle remote filenames to well.
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?
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)
> 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.
[jira] Updated: (CAMEL-420) FTPComponent - problems and
improvements
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-420:
------------------------------
Description:
See this forum:
http://www.nabble.com/FTP-to-FILE-td16354813s22882.html
Problems:
- Using ASCII you need to use convertBodyTo(String.class) to let it work out of the box
- Using BINARY we need some Type Converters to let it consume files from a FTP Server and store it as a File *Fixed*
- You have to set the filename using the header in the configuration otherwise the filename can be wrong *Fixed*
was:
See this forum:
http://www.nabble.com/FTP-to-FILE-td16354813s22882.html
Problems:
- Using ASCII you need to use convertBodyTo(String.class) to let it work out of the box
- Using BINARY we need some Type Converters to let it consume files from a FTP Server and store it as a File *Fixed*
- You have to set the filename using the header in the configuration otherwise the filename can be wrong
> FTPComponent - problems and improvements
> ----------------------------------------
>
> 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
> Fix For: 1.4.0
>
>
> See this forum:
> http://www.nabble.com/FTP-to-FILE-td16354813s22882.html
> Problems:
> - Using ASCII you need to use convertBodyTo(String.class) to let it work out of the box
> - Using BINARY we need some Type Converters to let it consume files from a FTP Server and store it as a File *Fixed*
> - You have to set the filename using the header in the configuration otherwise the filename can be wrong *Fixed*
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-420) FTPComponent - problems and
improvements
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-420:
------------------------------
Description:
See this forum:
http://www.nabble.com/FTP-to-FILE-td16354813s22882.html
Problems:
- Using ASCII you need to use convertBodyTo(String.class) to let it work out of the box *Fixed*
- Using BINARY we need some Type Converters to let it consume files from a FTP Server and store it as a File *Fixed*
- You have to set the filename using the header in the configuration otherwise the filename can be wrong *Fixed*
was:
See this forum:
http://www.nabble.com/FTP-to-FILE-td16354813s22882.html
Problems:
- Using ASCII you need to use convertBodyTo(String.class) to let it work out of the box
- Using BINARY we need some Type Converters to let it consume files from a FTP Server and store it as a File *Fixed*
- You have to set the filename using the header in the configuration otherwise the filename can be wrong *Fixed*
> FTPComponent - problems and improvements
> ----------------------------------------
>
> 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
> Fix For: 1.4.0
>
>
> See this forum:
> http://www.nabble.com/FTP-to-FILE-td16354813s22882.html
> Problems:
> - Using ASCII you need to use convertBodyTo(String.class) to let it work out of the box *Fixed*
> - Using BINARY we need some Type Converters to let it consume files from a FTP Server and store it as a File *Fixed*
> - You have to set the filename using the header in the configuration otherwise the filename can be wrong *Fixed*
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-420) FTPComponent - problems and
improvements
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-420:
------------------------------
Description:
See this forum:
http://www.nabble.com/FTP-to-FILE-td16354813s22882.html
Problems:
- Using ASCII you need to use convertBodyTo(String.class) to let it work out of the box
- Using BINARY we need some Type Converters to let it consume files from a FTP Server and store it as a File
- You have to set the filename using the header in the configuration otherwise the filename can be wrong
- and more
was:
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.
> FTPComponent - problems and improvements
> ----------------------------------------
>
> 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
> Fix For: 1.4.0
>
>
> See this forum:
> http://www.nabble.com/FTP-to-FILE-td16354813s22882.html
> Problems:
> - Using ASCII you need to use convertBodyTo(String.class) to let it work out of the box
> - Using BINARY we need some Type Converters to let it consume files from a FTP Server and store it as a File
> - You have to set the filename using the header in the configuration otherwise the filename can be wrong
> - and more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-420) FTPConsumer asii filetypes does not
use IOConverter toString out-of-the-box
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41946#action_41946 ]
Claus Ibsen commented on CAMEL-420:
-----------------------------------
The binary transfer type could also be a problem.
> 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
> 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.
[jira] Commented: (CAMEL-420) FTPComponent - problems and
improvements
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42027#action_42027 ]
Claus Ibsen commented on CAMEL-420:
-----------------------------------
Fix failing unit test on Bamboo
> FTPComponent - problems and improvements
> ----------------------------------------
>
> 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
> Fix For: 1.4.0
>
>
> See this forum:
> http://www.nabble.com/FTP-to-FILE-td16354813s22882.html
> Problems:
> - Using ASCII you need to use convertBodyTo(String.class) to let it work out of the box *Fixed*
> - Using BINARY we need some Type Converters to let it consume files from a FTP Server and store it as a File *Fixed*
> - You have to set the filename using the header in the configuration otherwise the filename can be wrong *Fixed*
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-420) FTPComponent - problems and
improvements
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-420:
------------------------------
Description:
See this forum:
http://www.nabble.com/FTP-to-FILE-td16354813s22882.html
Problems:
- Using ASCII you need to use convertBodyTo(String.class) to let it work out of the box
- Using BINARY we need some Type Converters to let it consume files from a FTP Server and store it as a File
- You have to set the filename using the header in the configuration otherwise the filename can be wrong
- FTPConsumer (polling) does not adhere to parameters for delay etc.
was:
See this forum:
http://www.nabble.com/FTP-to-FILE-td16354813s22882.html
Problems:
- Using ASCII you need to use convertBodyTo(String.class) to let it work out of the box
- Using BINARY we need some Type Converters to let it consume files from a FTP Server and store it as a File
- You have to set the filename using the header in the configuration otherwise the filename can be wrong
- and more
> FTPComponent - problems and improvements
> ----------------------------------------
>
> 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
> Fix For: 1.4.0
>
>
> See this forum:
> http://www.nabble.com/FTP-to-FILE-td16354813s22882.html
> Problems:
> - Using ASCII you need to use convertBodyTo(String.class) to let it work out of the box
> - Using BINARY we need some Type Converters to let it consume files from a FTP Server and store it as a File
> - You have to set the filename using the header in the configuration otherwise the filename can be wrong
> - FTPConsumer (polling) does not adhere to parameters for delay etc.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-420) FTPComponent - problems and
improvements
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-420:
------------------------------
Summary: FTPComponent - problems and improvements (was: FTPConsumer asii filetypes does not use IOConverter toString out-of-the-box)
Priority: Major (was: Minor)
> FTPComponent - problems and improvements
> ----------------------------------------
>
> 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
> 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.
[jira] Updated: (CAMEL-420) FTPComponent - problems and
improvements
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-420:
------------------------------
Description:
See this forum:
http://www.nabble.com/FTP-to-FILE-td16354813s22882.html
Problems:
- Using ASCII you need to use convertBodyTo(String.class) to let it work out of the box
- Using BINARY we need some Type Converters to let it consume files from a FTP Server and store it as a File *Fixed*
- You have to set the filename using the header in the configuration otherwise the filename can be wrong
was:
See this forum:
http://www.nabble.com/FTP-to-FILE-td16354813s22882.html
Problems:
- Using ASCII you need to use convertBodyTo(String.class) to let it work out of the box
- Using BINARY we need some Type Converters to let it consume files from a FTP Server and store it as a File
- You have to set the filename using the header in the configuration otherwise the filename can be wrong
- FTPConsumer (polling) does not adhere to parameters for delay etc.
> FTPComponent - problems and improvements
> ----------------------------------------
>
> 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
> Fix For: 1.4.0
>
>
> See this forum:
> http://www.nabble.com/FTP-to-FILE-td16354813s22882.html
> Problems:
> - Using ASCII you need to use convertBodyTo(String.class) to let it work out of the box
> - Using BINARY we need some Type Converters to let it consume files from a FTP Server and store it as a File *Fixed*
> - You have to set the filename using the header in the configuration otherwise the filename can be wrong
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Work started: (CAMEL-420) FTPConsumer asii filetypes does
not use IOConverter toString out-of-the-box
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on CAMEL-420 started by Claus Ibsen.
> 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.
[jira] Resolved: (CAMEL-420) FTPComponent - problems and
improvements
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-420.
-------------------------------
Resolution: Fixed
Most of the major problems is fixed now.
Unit test for the SFTP part would be nice but it requires some mocking as we do not have a SFTP java server at the moment.
> FTPComponent - problems and improvements
> ----------------------------------------
>
> 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
> Fix For: 1.4.0
>
>
> See this forum:
> http://www.nabble.com/FTP-to-FILE-td16354813s22882.html
> Problems:
> - Using ASCII you need to use convertBodyTo(String.class) to let it work out of the box *Fixed*
> - Using BINARY we need some Type Converters to let it consume files from a FTP Server and store it as a File *Fixed*
> - You have to set the filename using the header in the configuration otherwise the filename can be wrong *Fixed*
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-420) FTPConsumer asii filetypes does not
use IOConverter toString out-of-the-box
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41958#action_41958 ]
Claus Ibsen commented on CAMEL-420:
-----------------------------------
The binary is failing out-of-the-box as we do not provide type converters. I got it working now with binary files.
> 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.