Bug 34293

Summary: Saving file with date field as Office Open XML Text (.docx) corrupts document
Product: LibreOffice Reporter: leighman <jack.leigh>
Component: WriterAssignee: Luboš Luňák <l.lunak>
Status: RESOLVED FIXED    
Severity: normal CC: cedric.bosdonnat.ooo
Priority: medium    
Version: 3.3.0 release   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Test document
Corrupted document produced

Description leighman 2011-02-15 05:22:32 UTC
Created attachment 43376 [details]
Test document

Upstreaming from https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/584600

Confirmed in LibO 3.3, Ubuntu Maverick

Open attached .doc file.
Save as Office Open XML Text (.docx)

Document is corrupted as in screenshot when reopened with LibO.  Information after date is lost.
Opening it with Word 2007, it is able to recover the document but loses style formatting.  Claims error at style.xml, line 2, column 204.

Saving as Word 2007 XML (.docx) did not show this problem for me
Comment 1 leighman 2011-02-15 05:23:48 UTC
Created attachment 43377 [details]
Corrupted document produced
Comment 2 Cédric Bosdonnat 2011-02-15 07:42:30 UTC
The problem lies in the docx import as the document is exported properly. Lubos, can you have a look at it?
Comment 3 Luboš Luňák 2011-02-24 08:51:52 UTC
No, it is really export that is broken. There are two problems:
1) bnc#499106 makes the rest of the text disappear
2) instrText itself seems to be formatted incorrectly, breaking the field (only)

Cedric: Can you please answer in bnc#499106? I'm still investigating 2).
Comment 4 Luboš Luňák 2011-02-25 08:22:15 UTC
bnc#499106 and this seem to be the same, so fixed in master.