Bug 62513

Summary: Don't try to parse embedded package relationships
Product: POI Reporter: Andreas Beeker <kiwiwings>
Component: OPCAssignee: POI Developers List <dev>
Severity: normal    
Priority: P2    
Version: 4.0.x-dev   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: A slideshow which embeds word documents

Description Andreas Beeker 2018-06-30 10:52:28 UTC
Created attachment 36001 [details]
A slideshow which embeds word documents

In the last commoncrawl regression tests we saw a parsing exception to an embedded word document inside a slideshow. The XSLFRelation.WORKBOOK uses the general relationship type "http://schemas.openxmlformats.org/officeDocument/2006/relationships/package" for embedded resources, but those can point to various non-/office types and so shouldn't be parsed by POIXMLFactory.createDocumentPart() by default.

I've already implemented a switch based on the used file extension, but this would lead to further problems when writing the document, therefore I simply ignore the "descriptor class" and return the general POIXMLDocumentPart in such cases.
Comment 1 Andreas Beeker 2018-06-30 11:21:16 UTC
applied via r1834729