[ 
https://issues.apache.org/jira/browse/CAMEL-9375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15065350#comment-15065350
 ] 

ASF GitHub Bot commented on CAMEL-9375:
---------------------------------------

GitHub user snurmine opened a pull request:

    https://github.com/apache/camel/pull/739

    CAMEL-9375: TarSplitter includes one extra empty entry at the end.

    CAMEL-9375: TarSplitter includes one extra empty entry at the end.
    Modified iterator. It simply tries to generate next element and returns 
true if then there exists a next element.
    
    Message body is now StreamCached and size is bounded(StreamCaching is done 
from BoundedInputStream), because it seems that consuming tarInputStream in 
wrong order causes problems.
    Other solution would be use ByteArrayInputStream as body, but with large 
files that might cause OutOfMemory exception.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/snurmine/camel CAMEL-9375

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/739.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #739
    
----
commit cb5c211dc26c911c0e54c2893a9b1ecc7c595618
Author: Sami Nurminen <[email protected]>
Date:   2015-12-19T11:48:27Z

    CAMEL-9375: TarSplitter includes one extra empty entry at the end.

----


> camel-tarfile - TarSplitter includes one extra empty entry at the end
> ---------------------------------------------------------------------
>
>                 Key: CAMEL-9375
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9375
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-tarfile
>    Affects Versions: 2.16.1
>            Reporter: Claus Ibsen
>             Fix For: 2.16.2, 2.17.0
>
>
> This unit test demonstrates the bug
> org.apache.camel.dataformat.tarfile.TarSplitterRouteIssueTest
> There is only 3 files in the tar file that it uses, but the splitter has 4 
> entries where the last is empty.



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

Reply via email to