https://issues.apache.org/bugzilla/show_bug.cgi?id=48593

           Summary: Multiple Saves Causes Slide Corruption
           Product: POI
           Version: 3.6
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: HSLF
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created an attachment (id=24881)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24881)
A simple java program that demonstrates the bug

I have a program that adds slides to a PowerPoint slide deck one slide at a
time based on a user action. In between every addition of a new slide a save is
performed so that the new slide is written to the slide deck. This save is
necessary because the user may decide to view the PowerPoint presentation after
the addition of a single slide. The first slide that is added is fine. The
second slide that is added is fine. The third slide that is added is corrupt
every time. This has nothing to do with slide contents, as the corruption
occurs with blank slides as well as slides with content. 

The attached sample code demonstrates this bug. The sample code generates two
slide decks. One has two slides and works fine, the other has three slides and
the third slide is corrupt. Saving after every addition of a slide is done
simply to demonstrate the problem. If we add 3 slides and then perform a single
save, the corruption does not happen. But this is not a feasible work around
for the issue; we need to be able to write the new slide to the slide deck
every time the user initiates the action, since the user could decide to view
his new slide deck after the addition of every slide.

It is also interesting to note that a slide deck created through PowerPoint
(not prgorammatically using POI) does not have this problem. I can create a
blank PowerPoint presentation and then append and save however many slides I
want using POI.

I've also attempted to alleviate the problem by re-reading in the SlideShow
object in between every save. This had no effect.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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]

Reply via email to