[
https://issues.apache.org/jira/browse/TIKA-2384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16035075#comment-16035075
]
Luis Filipe Nassif commented on TIKA-2384:
------------------------------------------
To clean temp files we can use
{code}
TemporaryResources tmp = new TemporaryResources();
Try{
TikaInputStream.get(inputstream, tmp);
....
}finally {
tmp.close();
}
{code}
> 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)