You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2014/08/04 19:30:12 UTC

[jira] [Commented] (TIKA-1118) OOXML parser throws when relationship points to 0 byte embedded part

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

Hudson commented on TIKA-1118:
------------------------------

SUCCESS: Integrated in tika-trunk-jdk1.7 #140 (See [https://builds.apache.org/job/tika-trunk-jdk1.7/140/])
Enable the check for TIKA-1118, now that we have upgraded POI (nick: http://svn.apache.org/viewvc/tika/trunk/?view=rev&rev=1615638)
* /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml/AbstractOOXMLExtractor.java


> OOXML parser throws when relationship points to 0 byte embedded part
> --------------------------------------------------------------------
>
>                 Key: TIKA-1118
>                 URL: https://issues.apache.org/jira/browse/TIKA-1118
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 1.3
>         Environment: Tested on MAC and Ubuntu server
>            Reporter: Lee Graber
>             Fix For: 1.7
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> I have a test document (pptx) where there is a 0 byte embedded part which is referenced in a relationship. I don't really know how the document got like this but Office can open it without any issues. The problem is in AbstractOOXMLExtractor::handleEmbeddedOle. It attempts to create a POIFSFileSystem:
>      POIFSFileSystem fs = new POIFSFileSystem(part.getInputStream());
> using the part stream in the constructor but fails because of insufficient data. Given that the whole function except for this one line is in a try -> catch -> ignore, it seems like the best option is to put this line inside the try / catch. There is no metadata to extract from the 0 byte part.



--
This message was sent by Atlassian JIRA
(v6.2#6252)