Bug 145226 - MSWord 2019 doesn't open odt files with tables created by LibreOffice
Summary: MSWord 2019 doesn't open odt files with tables created by LibreOffice
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bisected, regression
Depends on:
Blocks:
 
Reported: 2021-10-19 18:39 UTC by himajin100000
Modified: 2021-12-16 13:13 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
table-row with table:style-name (8.74 KB, application/vnd.oasis.opendocument.text)
2021-10-19 18:45 UTC, himajin100000
Details
table-row without table:style-name (8.43 KB, application/vnd.oasis.opendocument.text)
2021-10-19 18:45 UTC, himajin100000
Details

Note You need to log in before you can comment on or make changes to this bug.
Description himajin100000 2021-10-19 18:39:33 UTC
Description:
see steps to reproduce.

Steps to Reproduce:
1. Launch Writer
2. Insert 4x4 Table 
3. Save As odt (attached as original.odt)
4. Open the original.odt in MSWord

Actual Results:
"Word found unreadable content in original.odt. Do you want to recover the contents of this document?"

Expected Results:
opens with no such message.


Reproducible: Always


User Profile Reset: No



Additional Info:
I attached modified.odt. 

The difference between original.odt and modified.odt is:

Removed all the "table:style-name" attributes from the table:table-row elements in the content.xml

I can find any TableLine[a-z0-9]* styles neither in content.xml nor in styles.xml
There were no elements with table:style-name whose values start with "TableBox"
---
I will add Vasily Melenchuk and Thorsten Behrens to CC list.
https://gerrit.libreoffice.org/c/core/+/99023
Comment 1 himajin100000 2021-10-19 18:45:27 UTC
Created attachment 175837 [details]
table-row with table:style-name
Comment 2 himajin100000 2021-10-19 18:45:57 UTC
Created attachment 175838 [details]
table-row without table:style-name
Comment 3 m.a.riosv 2021-10-19 20:20:59 UTC
And what version of odt are you using to save?
Menu/Tools/Options/Load-Save/General - ODF format version.

And please attach a sample file.
Comment 4 himajin100000 2021-10-19 20:28:33 UTC
>And what version of odt are you using to save?
Menu/Tools/Options/Load-Save/General - ODF format version.

I used 1.3 non-extended version.
the OP of the following question says he was able to reproduce with 1.2 Extended and 1.3 Extended
https://ask.libreoffice.org/t/writer-odt/69438

>And please attach a sample file.

I already did it.
Comment 5 Vasily Melenchuk (CIB) 2021-10-19 21:12:24 UTC
I confirm a problem. Yes it did came from my commit 083fe09958658de8c3da87a28e0f8ff7b3b8a5e9 (https://gerrit.libreoffice.org/c/core/+/99023) and I've reproduced a problem with LO starting from 7.0 and attempts to open document with Word 365.

Yes, problem did came from emitted table:style-name="TableLine*"
Comment 6 himajin100000 2021-10-19 21:32:10 UTC
Oops, I found typo in my comment
>I can find any TableLine[a-z0-9]* styles neither in content.xml nor in styles.xml
I can find any TableBox[a-z0-9]* styles neither in content.xml nor in styles.xml
Comment 7 Justin L 2021-12-09 11:02:18 UTC
backported to 6.4 - although I'm not sure which one it landed in. In any case, it will at least have affected 6.4.7, while the patch first landed in 7.1.
Comment 8 Gabor Kelemen (allotropia) 2021-12-16 13:13:58 UTC
Adding CC to: Vasily Melenchuk