poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51187] Opening and saving PPTX with specific image corrupts file (Power point will no longer open)
Date Thu, 11 Aug 2011 08:13:40 GMT

Yegor Kozlov <yegor@dinom.ru> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Yegor Kozlov <yegor@dinom.ru> 2011-08-11 08:13:40 UTC ---
Fixed in r1156529

Nick is right, it was an issue with saving self references.
PackagingURIHelper#relativizeURI resolved self references to an empty string
which is wrong. The correct behavior is to return the last segment in the URI.
In your case both the source and target URIs are /ppt/slides/slide1.xml and the
value written in the relationship part should be slide1.xml (was empty string). 

It appears that self-referencing is legal from the OPC point of view. One way
to reproduce the problem in MS Office is to create a .pptx presentation, add a
slide and put a hyperlink that points to this slide. The slide will reference
itself in /slides/_rels/slide1.xml.rels.  


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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org

View raw message