You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2019/10/28 13:11:51 UTC

[Bug 63888] New: Corrupted PPTX when a slide contains more than a charts inside

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

            Bug ID: 63888
           Summary: Corrupted PPTX when a slide contains more than a
                    charts inside
           Product: POI
           Version: 4.1.1-FINAL
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: XSLF
          Assignee: dev@poi.apache.org
          Reporter: cmauri@gmail.com
  Target Milestone: ---

After modifiing data in a slide than contains more than one chart an exception
is thrown because excel name is not unique.
Original template contains:
/ppt/embeddings/Microsoft_Excel_Worksheet0.xlsx
/ppt/embeddings/Microsoft_Excel_Worksheet1.xlsx
and so on, but after processing numbering is lost:



org.apache.poi.openxml4j.exceptions.PartAlreadyExistsException: A part with the
name '/ppt/embeddings/Microsoft_Excel_Worksheet0.xlsx' already exists :
Packages shall not contain equivalent part names and package implementers shall
neither create nor recognize packages with equivalent part names. [M1.12]

        at
org.apache.poi.openxml4j.opc.OPCPackage.createPart(OPCPackage.java:830)
        at
org.apache.poi.openxml4j.opc.OPCPackage.createPart(OPCPackage.java:793)
        at
org.apache.poi.ooxml.POIXMLDocumentPart.createRelationship(POIXMLDocumentPart.java:583)
        at
org.apache.poi.xddf.usermodel.chart.XDDFChart.createRelationshipInChart(XDDFChart.java:675)
        at
org.apache.poi.xddf.usermodel.chart.XDDFChart.createWorksheetPart(XDDFChart.java:694)
        at
org.apache.poi.xddf.usermodel.chart.XDDFChart.saveWorkbook(XDDFChart.java:715)
        at
org.apache.poi.xddf.usermodel.chart.XDDFChart.commit(XDDFChart.java:826)
        at
org.apache.poi.ooxml.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:463)
        at
org.apache.poi.ooxml.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:468)
        at
org.apache.poi.ooxml.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:468)
        at org.apache.poi.ooxml.POIXMLDocument.write(POIXMLDocument.java:236)

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


[Bug 63888] Error creating PPTX when a slide contains more than a charts inside

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63888

--- Comment #1 from Cesare Mauri <cm...@gmail.com> ---
Note: I started from a pptx created from openoffice, if I make the same from a
msoffice file the problem doesn't occur but final file is corrupted (openoffice
opens it but msoffice not)

http://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/BarChartDemo.java
present the same problem (corrupted pptx file when template is saved and than
opened from msoffice)

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


[Bug 63888] Error creating PPTX when a slide contains more than a charts inside

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63888

Alain Fagot Bearez <Al...@cua.li> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
          Component|XSLF                        |XDDF
         Resolution|---                         |FIXED

--- Comment #2 from Alain Fagot Bearez <Al...@cua.li> ---
fixed by r1870696

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


[Bug 63888] Error creating PPTX when a slide contains more than a charts inside

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63888

Cesare Mauri <cm...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Corrupted PPTX when a slide |Error creating PPTX when a
                   |contains more than a charts |slide contains more than a
                   |inside                      |charts inside

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