Bug 34293 - Saving file with date field as Office Open XML Text (.docx) corrupts document
Summary: Saving file with date field as Office Open XML Text (.docx) corrupts document
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
3.3.0 release
Hardware: Other Linux (All)
: medium normal
Assignee: Luboš Luňák
Depends on:
Reported: 2011-02-15 05:22 UTC by leighman
Modified: 2011-02-25 08:22 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:

Test document (11.00 KB, application/msword)
2011-02-15 05:22 UTC, leighman
Corrupted document produced (6.88 KB, image/png)
2011-02-15 05:23 UTC, leighman

Note You need to log in before you can comment on or make changes to this bug.
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.