camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Cosentino (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-10297) Camel-Ftp: Splitting the body doesn't parse the file content but the RemoteFile
Date Thu, 08 Sep 2016 06:15:21 GMT
Andrea Cosentino created CAMEL-10297:
----------------------------------------

             Summary: Camel-Ftp: Splitting the body doesn't parse the file content but the
RemoteFile
                 Key: CAMEL-10297
                 URL: https://issues.apache.org/jira/browse/CAMEL-10297
             Project: Camel
          Issue Type: Improvement
            Reporter: Andrea Cosentino
            Assignee: Claus Ibsen
            Priority: Minor


{code}
from("{{ftp.server}}")
	    .log("Received file ${file:name} about to split")
	    .split(body().tokenize("\n"))
	    .log("${body})
            .to("mock:result");
{code}

In this case you'll get an output like this

{code}
-rw-rw-r--   1 oscerd oscerd      24 Sep  2 18:03 file_test.txt
{code}

While an end user expect the file content.

I assign the issue to Claus, since he worked on the fix, I've only added a test. Merging now



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message