You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Tim Allison (JIRA)" <ji...@apache.org> on 2015/01/05 14:55:34 UTC
[jira] [Commented] (TIKA-1506) OutlookPSTParser not closing
PSTFile's InputStream, causing exception when called by AutoDetectParser
[ https://issues.apache.org/jira/browse/TIKA-1506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14264597#comment-14264597 ]
Tim Allison commented on TIKA-1506:
-----------------------------------
Looks like PSTFile relies on finalize() to close the stream. If we add:
{noformat}
pstFile.getFileHandle().close();
{noformat}
after we parse the PSTFile, the problem goes away.
Any objections?
> OutlookPSTParser not closing PSTFile's InputStream, causing exception when called by AutoDetectParser
> -----------------------------------------------------------------------------------------------------
>
> Key: TIKA-1506
> URL: https://issues.apache.org/jira/browse/TIKA-1506
> Project: Tika
> Issue Type: Bug
> Components: parser
> Environment: Windows
> Reporter: Tim Allison
> Priority: Blocker
> Fix For: 1.7
>
>
> On Windows, PSTFile can leave its InputStream open, which can prevent AutoDetectParser from deleting the temporary file.
> Let's make sure to close the InputStream.
> I view this as a blocker on 1.7 because this prevents parsing of all PST files on Windows.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)