Issue 127592 - Table in docx loses column when saved as odt even though data in column appears in odt content.xml
Summary: Table in docx loses column when saved as odt even though data in column appea...
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: 4.1.4
Hardware: PC Windows 7
: P5 (lowest) Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-12 12:42 UTC by John
Modified: 2018-11-15 21:55 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: 4.1.6
Developer Difficulty: ---


Attachments
docx file with 4 column table - column 4 is lost when saved as .odt (11.49 KB, application/vnd.oasis.opendocument.text)
2017-11-12 12:42 UTC, John
no flags Details
file error column.docx (21.35 KB, application/zip)
2017-11-13 10:52 UTC, John
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description John 2017-11-12 12:42:56 UTC
Created attachment 86258 [details]
docx file with 4 column table - column 4 is lost when saved as .odt

See forum post Column (and content) lost after saving a .docx as a .odt at https://forum.openoffice.org/en/forum/viewtopic.php?f=7&t=91114

1.  Download attached .docx file - note it has a 4 column table
2.  Save as .odt
3.  Open .odt

Expected result:  Table will be displayed with all 4 columns 

Actual result:  Column 4 is now missing from table.

1.  Download attached .docx file
2.  Edit file and add zebra, cat and dog to rows in column 4
3.  Save as .odt
4.  Open .odt 


Expected result:  Table will be displayed with all 4 columns and data 

Actual result:  Column 4 is now missing from table as before.

5.  Extract content.xml from saved .odt file

Note 1. See that zebra (line 157), cat (line 172) and dog (line 187) appear in pretty-printed content.xml

Note 2. The text in rows 1 and 2 has been set to white which is why it is not visible.
Comment 1 Patricia Shanahan 2017-11-13 02:49:06 UTC
I could only find the already-corrupted .odt. The original .docx is important for debug.
Comment 2 Peter 2017-11-13 03:41:49 UTC
1st Post in Forum Link is a docx die uploaded.
Comment 3 John 2017-11-13 10:52:12 UTC
Created attachment 86259 [details]
file error column.docx

My apologies - I meant to upload the .docx but forgot.  I have now uploaded it here.
Comment 4 Keith N. McKenna 2017-11-13 15:05:29 UTC
Confirmed with the followin configuration

Intel (R) Pentium(R) CPU 4405U @2.10GHz, 2112MHz, 2(Core(s) 4 Logical Processors
Total Physical Memory 8.00 GB
Operating System: Windows 10 Home Version 10.0.15063 Build 15063

Apache Open Office:
AOO414m5(Build:9788)  -  Rev. 1811857
2017-10-11 20:12
Language: en_US
Additional Language Packs: None
Comment 5 Massimo Santi 2018-03-25 22:25:00 UTC
Same happened with a similar table in one of my files (OpenOffice/4.1.3 Win32 OpenOffice.org_project/413m1 Build-9783)
To unhide the columns in the odt file, I modified content.xml by removing:
<table:covered-table-cell/>
and by replacing "2" with "0" in:
number-columns-spanned="2"
This replacement works also on the odt file attached to this bug report.
So it seems to be something related to that table cells and spanning.