https://bz.apache.org/bugzilla/show_bug.cgi?id=62513
Bug ID: 62513
Summary: Don't try to parse embedded package relationships
Product: POI
Version: 4.0-dev
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: OPC
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 36001
--> https://bz.apache.org/bugzilla/attachment.cgi?id=36001&action=edit
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.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]