camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abdiel E. Sanchez (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-6679) Issue when using ZipSplitter and sending entries to a file endpoint
Date Thu, 29 Aug 2013 04:14:58 GMT

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

Abdiel E. Sanchez updated CAMEL-6679:
-------------------------------------

    Attachment: data.zip

This is the zip file I was using just for completeness.
                
> 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
>         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:
> from("seda:decompressFiles").routeId("DecompressFiles") 
>   .split(new ZipSplitter()).streaming().shareUnitOfWork() 
>      .log("WE ARE SPLITTING!!!") 
>      .to("file:{{ClientFileArchiveRoot}}?fileName=${header.SomePath}/${header.zipFileName}")

>      //.to("activemq:queue:ZipChildFiles") //You can use seda or direct or here and it
will still work correctly 
> ;
> //data.zip has two entries
> template.sendBody("seda:decompressFiles", new File("C:\\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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message