You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2013/11/12 11:27:18 UTC

[jira] [Resolved] (CAMEL-6679) Issue when using ZipSplitter and sending entries to a file endpoint

     [ https://issues.apache.org/jira/browse/CAMEL-6679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-6679.
--------------------------------

       Resolution: Cannot Reproduce
    Fix Version/s: 2.13.0
         Assignee: Claus Ibsen

> Issue when using ZipSplitter and sending entries to a file endpoint
> -------------------------------------------------------------------
>
>                 Key: CAMEL-6679
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6679
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.11.0
>            Reporter: Abdiel E. Sanchez
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.13.0
>
>         Attachments: data.zip
>
>
> This issue was recorded on the forum on this link: http://camel.465427.n5.nabble.com/Issue-when-using-ZipSplitter-and-sending-entries-to-a-file-endpoint-td5738179.html#a5738183
> I am not sure at this point if this is only relevant to the the ZipSplitter, but that is how I stumbled upon this.  If you use the ZipSplitter and send the entries to a file EndPoint the "Original File" entry does not come back.
> This code can be used to reproduce it:
> {code}
> from("seda:decompressFiles").routeId("DecompressFiles") 
>   .split(new ZipSplitter()).streaming().shareUnitOfWork() 
>      .log("WE ARE SPLITTING!!!") 
>      .to("file:{{ClientFileArchiveRoot}}?fileName=zipFileName") 
>      //.to("activemq:queue:ZipChildFiles") //You can use seda or direct or here and it will still work correctly 
> ;
> {code}
> //data.zip has two entries
> template.sendBody("seda:decompressFiles", new File("data.zip"));
> With this simple example as it stands it does not work.  If you comment out the .to("file:...") and uncomment the next line, it will work.
> With a zip file with two entries you should get:
> [ad #0 - seda://decompressFiles] DecompressFiles   INFO  WE ARE SPLITTING!!!
> [ad #0 - seda://decompressFiles] DecompressFiles   INFO  WE ARE SPLITTING!!!
> if you comment the to("file:..") and uncomment the next line you will get:
> [ad #0 - seda://decompressFiles] DecompressFiles   INFO  WE ARE SPLITTING!!!
> [ad #0 - seda://decompressFiles] DecompressFiles   INFO  WE ARE SPLITTING!!!
> [ad #0 - seda://decompressFiles] DecompressFiles   INFO  WE ARE SPLITTING!!!
> which means it is working as expected on the second case.



--
This message was sent by Atlassian JIRA
(v6.1#6144)