[
https://issues.apache.org/jira/browse/TIKA-1117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tyler Palsulich resolved TIKA-1117.
-----------------------------------
Resolution: Fixed
Assignee: Tyler Palsulich
Thank you, [~anjackson]! Fixed with unit test in r1666756.
> IWorkPackageParser should not close the InputStream
> ---------------------------------------------------
>
> Key: TIKA-1117
> URL: https://issues.apache.org/jira/browse/TIKA-1117
> Project: Tika
> Issue Type: Bug
> Components: parser
> Affects Versions: 1.3
> Reporter: Andrew Jackson
> Assignee: Tyler Palsulich
> Priority: Minor
>
> I am using the Tika parser framework embedded in another application, i.e. I
> am controlling the output InputStream which is then wrapped as a
> TikaInputStream and parsed. Under these circumstances, I run into problems
> due to the IWorkPackageParser closing the InputStream. See
> org.apache.tika.parser.iwork.IWorkPackageParser.parse(IWorkPackageParser.java:219)
> I can avoid this by wrapping my stream in a CloseShieldInputStream, but I
> suspect this may cause problems more widely. I believe that any Tika Parser
> implementation should not close the InputStream it is passed, and therefore
> the .close() call in the IWorkPackageParser should be removed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)