You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Nick Burch (JIRA)" <ji...@apache.org> on 2018/01/10 06:44:01 UTC

[jira] [Commented] (TIKA-2545) RereadableInputStream backing byte array not constructed properly

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

Nick Burch commented on TIKA-2545:
----------------------------------

Are you able to produce a short junit unit test that shows up the problem that your pull request (https://github.com/apache/tika/pull/217) fixes?

I'm also wondering if we need to reset size to zero or not on a re-wind, and a unit test seems a good way to check that too!

> RereadableInputStream backing byte array not constructed properly
> -----------------------------------------------------------------
>
>                 Key: TIKA-2545
>                 URL: https://issues.apache.org/jira/browse/TIKA-2545
>             Project: Tika
>          Issue Type: Bug
>          Components: core
>            Reporter: Eugene Hart
>            Priority: Minor
>
> For original inputstreams smaller than buffersize, should create bytearrayinputstream with bounds determined by size of original input, not pass in entire buffer.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)