https://bz.apache.org/bugzilla/show_bug.cgi?id=66284

            Bug ID: 66284
           Summary: Apache POI - Merge deck with different slide layouts
           Product: POI
           Version: unspecified
          Hardware: PC
            Status: NEW
          Severity: critical
          Priority: P2
         Component: XSLF
          Assignee: dev@poi.apache.org
          Reporter: jatish.kha...@gmail.com
  Target Milestone: ---

On Using option targetDeck.createSlide(srcSlide.getSlideLayout), the apache POI
throws error while writing (mergedDeck.write(outStream)) to a deck -

Rule M2.4 exception : Part '/_rels/.rels' not found - this error should NEVER
happen!\nCheck that your code is closing the open resources in the correct
order prior to filing a bug report.\nIf you can provide the triggering file,
then please raise a bug at
https://bz.apache.org/bugzilla/enter_bug.cgi?product=POI and attach the file
that triggers it, thanks!

The probable reason for the above -

When slides are created using PackagePart with the same name in this case
(SlideLayout from different decks having different), on cleanup it will throw
an exception. Find below the trace-
org.apache.poi.openxml4j.opc.internal.ContentTypeManager.getContentType(ContentTypeManager.java:353)
at
org.apache.poi.openxml4j.opc.internal.ContentTypeManager.removeContentType(ContentTypeManager.java:262)
at org.apache.poi.openxml4j.opc.OPCPackage.removePart(OPCPackage.java:998) at
org.apache.poi.openxml4j.opc.PackagePart.getOutputStream(PackagePart.java:526)
at org.apache.poi.xslf.usermodel.XSLFSheet.commit(XSLFSheet.java:412) at
org.apache.poi.ooxml.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:467) at
org.apache.poi.ooxml.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:472) at
org.apache.poi.ooxml.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:472) at
org.apache.poi.ooxml.POIXMLDocument.write(POIXMLDocument.java:221)



More details:
https://stackoverflow.com/questions/73727277/apache-poi-merge-multiple-decks-to-single-deck

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to