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 50154] New: POIFS->save losing drawing part
Date Mon, 25 Oct 2010 21:42:53 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50154

           Summary: POIFS->save losing drawing part
           Product: POI
           Version: 3.7-dev
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: POIFS
        AssignedTo: dev@poi.apache.org
        ReportedBy: thyde@centraldesktop.com


I sent this to the POI-users mailing list a few weeks ago and was advised to
open a bug here.


I've been injecting custom document properties with POI in both OOXML and OLE
files for about 4 months now covering a very large number of documents.    I do
have one customer complaining when they open my meta-data injected version of
their file that Excel complains about a missing drawing part.

The recovery log is:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> 
- <recoveryLog
xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"> 
<logFileName>error027960_01.xml</logFileName> 
<summary>Errors were detected in file 'Z:\Downloads\bad.xlsx'</summary> 
- <removedParts summary="Following is a list of removed parts:"> 
<removedPart>Removed Part: /xl/drawings/drawing1.xml part. (Drawing
shape)</removedPart> 
</removedParts> 
</recoveryLog>



Extracting the original file and the one I modified (only the custom document
properties) and diff I get the attached diff.



Largely the differences are just formatting changes ... POI making the XML
pretty print.

POI drops the standalone="yes" attribute in the XML declaration ... that
shouldn't be a big deal.

The thing that jumps out at me is that in xl/drawings/_rels/drawing1.xml.rels,
I'm losing relationship rId1 (<Relationship Id="rId1"
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink"
Target="#'Instructions (Text)'!B21"/></Relationships>) in version that POI
saves to disk.

Does anyone have any suggestions or seen anything like this before?  I started
this project back at the beginning of the year with an early 3.7 snapshot,
migrated to beta2 and now to beta3 which all exhibit the same issues.






On Wed, 13 Oct 2010, Trey Hyde wrote:
The drawings all seem intact but only tangible difference I see is the missing
hyperlink rel in drawing1.  I just modified the code to not actually make any
changes and I see the same thing.

OK, looks like a more general bug then, not related to properties
modifications. Could you create a bug in bugzilla, and upload a file that
demonstrates the problem along with some code that shows it?

Thanks
Nick

-- 
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


Mime
View raw message