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

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from bugzilla@apache.org
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: [hidden email]
          Reporter: [hidden email]
  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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

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

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

Cesare Mauri <[hidden email]> 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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63888

--- Comment #1 from Cesare Mauri <[hidden email]> ---
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63888

Alain Fagot Bearez <[hidden email]> changed:

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

--- Comment #2 from Alain Fagot Bearez <[hidden email]> ---
fixed by r1870696

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]