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

Tim Allison commented on TIKA-2384:
-----------------------------------

bq. Haris is correct. The static "parse()" closes the InputStream so we 
shouldn't wrap the call to parse in an autoclose try(InputStream is = xyz) { 
TikaResource.parse(...) } Once I remove the autoclosing try, the test passes.


> 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)

Reply via email to