Bug 102466 - FILESAVE: DOCX truncated upon roundtrip
Summary: FILESAVE: DOCX truncated upon roundtrip
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
(earliest affected) release
Hardware: All All
: high critical
Assignee: Serge Krot (CIB)
Whiteboard: interoperability target:6.0.0
Keywords: dataLoss, filter:docx
Depends on:
Blocks: WPSShapeTextImport-Change
  Show dependency treegraph
Reported: 2016-09-23 22:27 UTC by Aron Budea
Modified: 2020-05-31 01:11 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Aron Budea 2016-09-23 22:27:52 UTC
This is a follow-up to bug 99273. Original report was about the following attachment not being able to be saved (as DOCX):

File can now be saved (fix will be in 5.2.3 / 5.1.6), but the file is truncated: the first page is missing.

In the last major version that could open and save this doc (4.3), only the first page is shown and saved, but the arrangement looks a bit better there.

This commit caused the DOCX not being able to be saved anymore:

"oox: import WPS shape with text as shape with textbox
This allows having real shapes (like having rounded corners) and complex
content (like containing a table) at the same time.

WPS shapes are wrappers around drawingML markup in DOCX files, so this
only affects the DOCX import."

This commit made saving possible again:

"crashtesting: assert on export of tdf99571-1.docx to docx"
Comment 1 Aron Budea 2016-09-23 22:31:34 UTC
Setting to NEW based on bug 99273.
Comment 2 Serge Krot (CIB) 2017-11-02 18:26:05 UTC
With actual sources of the LO, the problem (the file is truncated: the first page is missing.) is not reproducible for https://bugs.documentfoundation.org/attachment.cgi?id=124308 test file.

In any case a new unit test should be added.
Comment 3 Commit Notification 2017-11-06 09:37:17 UTC
Serge Krot committed a patch related to this issue.
It has been pushed to "master":


tdf#102466 Added unit test: ensure 1st page is not missing

It will be available in 6.0.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:

Affected users are encouraged to test the fix and report feedback.
Comment 4 Serge Krot (CIB) 2017-11-06 09:37:50 UTC
*    Added new unit test - ensure 1st page is not missing - DECLARE_OOXMLEXPORT_TEST(testTdf102466, "tdf102466.docx").