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 2011/05/12 01:09:27 UTC
DO NOT REPLY [Bug 51187] New: Opening and saving PPTX with specific
image corrupts file (Power point will no longer open)
https://issues.apache.org/bugzilla/show_bug.cgi?id=51187
Bug #: 51187
Summary: Opening and saving PPTX with specific image corrupts
file (Power point will no longer open)
Product: POI
Version: 3.8-dev
Platform: PC
Status: NEW
Severity: normal
Priority: P2
Component: XSLF
AssignedTo: dev@poi.apache.org
ReportedBy: thyde@centraldesktop.com
Classification: Unclassified
Created attachment 26986
--> https://issues.apache.org/bugzilla/attachment.cgi?id=26986
File that will be corrupted if you open and save it.
Executing this code against the attached file will create a file that is
unreadable PPT. The PPT contains only a single small image.
OPCPackage docPackage = OPCPackage.openOrCreate(input);
File output = File.createTempFile("office-ooxml-",null);
System.out.println(output.getCanonicalPath());
docPackage.save(output);
Same was true for 3.7 vs 3.8-beta2
In ppt/slides/_rels/slide1.xml.rels I notedd that the target on rId3 went from
slide1.xml on the good version to "" on the bad. Could be more material
differences, I just didn't notice.
--
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
DO NOT REPLY [Bug 51187] Opening and saving PPTX with specific image
corrupts file (Power point will no longer open)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51187
--- Comment #1 from Trey Hyde <th...@centraldesktop.com> 2011-05-11 23:10:23 UTC ---
Created attachment 26987
--> https://issues.apache.org/bugzilla/attachment.cgi?id=26987
End result of open/close
--
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
DO NOT REPLY [Bug 51187] Opening and saving PPTX with specific image
corrupts file (Power point will no longer open)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51187
Yegor Kozlov <ye...@dinom.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Yegor Kozlov <ye...@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.
Yegor
--
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
DO NOT REPLY [Bug 51187] Opening and saving PPTX with specific image
corrupts file (Power point will no longer open)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51187
Trey Hyde <th...@centraldesktop.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS/Version| |All
--- Comment #2 from Trey Hyde <th...@centraldesktop.com> 2011-05-11 23:11:54 UTC ---
Same code scenario as ticket #50154 btw
--
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
DO NOT REPLY [Bug 51187] Opening and saving PPTX with specific image
corrupts file (Power point will no longer open)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51187
--- Comment #3 from Nick Burch <ni...@alfresco.com> 2011-05-27 14:36:16 UTC ---
This looks to be an issue with self references during the save step
I've added a unit test in r1128324 which shows the problem. Someone'll need to
dig into the OPC code to try to spot what's going wrong
--
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