Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10297

Camel-Ftp: Splitting the body doesn't parse the file content but the RemoteFile

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.18.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

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

      In this case you'll get an output like this

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

      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

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              acosentino Andrea Cosentino
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: