Bug 102229 - FILESAVE DOCX Layout messes up with extra whitespace after saving and reloading (see comment 8)
Summary: FILESAVE DOCX Layout messes up with extra whitespace after saving and reloadi...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.0.6.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX
  Show dependency treegraph
 
Reported: 2016-09-16 14:43 UTC by HPS
Modified: 2020-04-30 10:28 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Test document (20.74 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-09-16 14:43 UTC, HPS
Details
Original file (491.28 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-09-16 19:46 UTC, HPS
Details

Note You need to log in before you can comment on or make changes to this bug.
Description HPS 2016-09-16 14:43:04 UTC
Created attachment 127368 [details]
Test document

I received a .docx document which I could open in libreoffice, but when saving in .docx format from libreoffice and then opening again, libreoffice failed:

terminate called after throwing an instance of 'com::sun::star::xml::sax::SAXParseException'

Document in question is attached.

Not sure where the bug is.

> find . -name "*.xml" | xargs -n1 xmllint > /dev/null
./word/styles.xml:2: parser error : Attribute w:val redefined
meShade="" w:fill="FFFFFF" w:themeFill="" w:themeFillTint="" w:themeFillShade=""
                                                                               ^
./word/styles.xml:2: parser error : Attribute w:fill redefined
meShade="" w:fill="FFFFFF" w:themeFill="" w:themeFillTint="" w:themeFillShade=""
                                                                               ^
./word/styles.xml:2: parser error : Attribute w:val redefined
meShade="" w:fill="FFFFFF" w:themeFill="" w:themeFillTint="" w:themeFillShade=""
                                                                               ^
./word/styles.xml:2: parser error : Attribute w:fill redefined
meShade="" w:fill="FFFFFF" w:themeFill="" w:themeFillTint="" w:themeFillShade=""
                                                                               ^
./word/styles.xml:2: parser error : Attribute w:val redefined
meShade="" w:fill="FFFFFF" w:themeFill="" w:themeFillTint="" w:themeFillShade=""
                                                                               ^
./word/styles.xml:2: parser error : Attribute w:fill redefined
meShade="" w:fill="FFFFFF" w:themeFill="" w:themeFillTint="" w:themeFillShade=""
                                                                               ^
./word/styles.xml:2: parser error : Attribute w:val redefined
meShade="" w:fill="FFFFFF" w:themeFill="" w:themeFillTint="" w:themeFillShade=""
                                                                               ^
./word/styles.xml:2: parser error : Attribute w:fill redefined
meShade="" w:fill="FFFFFF" w:themeFill="" w:themeFillTint="" w:themeFillShade=""
                                                                               ^
./word/styles.xml:2: parser error : Attribute w:val redefined
meShade="" w:fill="FFFFFF" w:themeFill="" w:themeFillTint="" w:themeFillShade=""
                                                                               ^
./word/styles.xml:2: parser error : Attribute w:fill redefined
meShade="" w:fill="FFFFFF" w:themeFill="" w:themeFillTint="" w:themeFillShade=""
                                                                               ^
./word/styles.xml:2: parser error : Attribute w:val redefined
meShade="" w:fill="FFFFFF" w:themeFill="" w:themeFillTint="" w:themeFillShade=""
                                                                               ^
./word/styles.xml:2: parser error : Attribute w:fill redefined
meShade="" w:fill="FFFFFF" w:themeFill="" w:themeFillTint="" w:themeFillShade=""
Comment 1 Douglas Mencken 2016-09-16 14:58:24 UTC
I confirm it with 5.2 and master

warn:sfx.doc:51830:1:sfx2/source/doc/objstor.cxx:2298: exception:
SAXParseException: '[ line 2]: Attribute w:fill redefined
', Stream '', Line 2, Column 5334
Comment 2 Buovjaga 2016-09-16 15:25:59 UTC
Confirmed. Already in 3.3 and 3.6.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.3.0.0.alpha0+
Build ID: 798d55fcd8efc10fcef6b8ac3fa5abdbc82501ec
CPU Threads: 8; OS Version: Linux 4.7; UI Render: default; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on September 13th 2016

Arch Linux 64-bit
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4

Arch Linux 64-bit
Version 3.6.7.2 (Build ID: e183d5b)
Comment 3 Douglas Mencken 2016-09-16 17:24:30 UTC Comment hidden (obsolete)
Comment 4 HPS 2016-09-16 17:30:52 UTC Comment hidden (obsolete)
Comment 5 HPS 2016-09-16 18:08:00 UTC
Hi,

Here is how to reproduce:

1) open the Songs_before_editing.docx I send off-list in libreoffice
2) select file->save as "Songs_after_editing.docx"
3) select to use docx format
3) close libreoffice
4) Now open Songs_after_editing.docx: "libreoffice Songs_after_editing.docx"
5) *Bang*

--HPS
Comment 6 HPS 2016-09-16 19:18:45 UTC Comment hidden (obsolete)
Comment 7 HPS 2016-09-16 19:46:36 UTC
Created attachment 127374 [details]
Original file
Comment 8 Buovjaga 2016-09-16 19:53:39 UTC
So, with the original file I realized more recent versions do not cause the problem of terminating.

HPS confirmed that version 5.0.6 already works fine in that regard.

However, it does cause a layout problem, where big areas of whitespace appear after a couple of verses: the text is broken up to more pages.

This report was originally about the file saved with version 4.3.
Comment 9 QA Administrators 2017-12-10 16:41:26 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2019-12-11 03:37:49 UTC Comment hidden (obsolete)
Comment 11 Timur 2020-01-30 17:37:25 UTC
WFM 8 pages with master 70+.