Bug 62513 - Don't try to parse embedded package relationships
Summary: Don't try to parse embedded package relationships
Alias: None
Product: POI
Classification: Unclassified
Component: OPC (show other bugs)
Version: 4.0.x-dev
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2018-06-30 10:52 UTC by Andreas Beeker
Modified: 2018-06-30 11:21 UTC (History)
0 users

A slideshow which embeds word documents (375.76 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2018-06-30 10:52 UTC, Andreas Beeker

Note You need to log in before you can comment on or make changes to this bug.
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