[
https://issues.apache.org/jira/browse/TIKA-2384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16034796#comment-16034796
]
Tim Allison commented on TIKA-2384:
-----------------------------------
This is actually caused by a subtle bug in the DigestingParser. If we wrap the
InputStream in a TikaInputStream in the DigestingParser (instead of in
CommonsDigester), everything works.
The problem is that while CommonsDigester resets its TikaInputStream, it cannot
reset the wrapped InputStream.
Once we fix DigestingParser, we won't have to wrap the underlying stream in a
TikaInputStream or close the underlying stream...because, theoretically, cxf
will do that...is that right [~sergey_beryozkin]?
> Double close of InputStream in accept text/plain in tika-server
> ---------------------------------------------------------------
>
> Key: TIKA-2384
> URL: https://issues.apache.org/jira/browse/TIKA-2384
> Project: Tika
> Issue Type: Bug
> Components: server
> Affects Versions: 1.15
> Reporter: Tim Allison
> Priority: Blocker
>
> As reported by Haris Osmanagic on the user list, TikaResource closes the
> InputStream twice on requests for text/plain.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)