Bug 103869 - FILEOPEN LibO doesn't open .docx file with two table separated by a page break correctly
Summary: FILEOPEN LibO doesn't open .docx file with two table separated by a page brea...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: medium normal
Assignee: Miklos Vajna
URL:
Whiteboard: compatibilityModeDefault target:7.6.0
Keywords: filter:docx
Depends on: 108233
Blocks: DOCX-Floatingtable
  Show dependency treegraph
 
Reported: 2016-11-11 15:52 UTC by m_josenhans
Modified: 2024-03-12 15:06 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
Test file for docx (table witjh page break) (16.73 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-11-11 15:52 UTC, m_josenhans
Details

Note You need to log in before you can comment on or make changes to this bug.
Description m_josenhans 2016-11-11 15:52:29 UTC
Created attachment 128666 [details]
Test file for docx (table witjh page break)

LibreOffice does not open the *.doc file containing a table and page breaks correctly. The *.docx can not be opened correctly. 


This is a split of the docx version from the bug #91799. 

-----------------------------------------------------------------
Here the comment4 bug #91799 again:

Yes, it is broken when compared with Word viewer.

LibO shows empty first page and the row heights in the table on the 2nd page are off.

Win 7 Pro 64-bit Version: 5.1.0.0.alpha1+
Build ID: d28102b1ed0c31500bbc68453a7b7613bd2bfa06
TinderBox: Win-x86@39, Branch:master, Time: 2015-06-09_01:06:39
Locale: fi-FI (fi_FI)
Comment 1 m_josenhans 2016-11-11 16:00:27 UTC
Here comment 8 of bug #91799 again:

DOCX shows empty table in LibO.
DOCX table shows content in A1-A3 in Word Viewer.

Win 7 Pro 64-bit Version: 5.3.0.0.alpha0+
Build ID: 7da2f3ce9f7b049c177a735a146dae84a764d3f7
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2016-10-04_03:49:06
Locale: fi-FI (fi_FI); Calc: CL

LibreOffice 3.5.0rc3 
Build ID: 7e68ba2-a744ebf-1f241b7-c506db1-7d53735
Comment 2 Buovjaga 2016-11-11 18:17:42 UTC
NEW as I confirmed it.
Comment 3 Xisco Faulí 2017-11-07 22:03:30 UTC
Still reproducible in

Version: 6.0.0.0.alpha1+
Build ID: 38a8157d9447134913d88c6c373d99a7aa472857
CPU threads: 4; OS: Linux 4.10; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group
Comment 4 QA Administrators 2018-11-08 04:06:57 UTC Comment hidden (obsolete)
Comment 5 Roman Kuznetsov 2018-11-08 06:48:31 UTC
still repro in

Version: 6.2.0.0.alpha1+
Build ID: 6896f39ffd8a6c4b32b8f601a6a93678247456bd
CPU threads: 4; OS: Windows 6.1; UI render: default; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2018-11-05_22:40:18
Locale: ru-RU (ru_RU); Calc: threaded

LibreOffice Writer shows a table on first page (and there is only one page in document in LO), but there isn't second page with table
Comment 6 Justin L 2020-06-03 10:57:22 UTC
This looks like the DOCX counterpart to bug 48097
Comment 7 Justin L 2020-07-23 12:21:17 UTC
Since the DOC counterpart was set as a duplicate of bug 108233, lets do the same for this one since apparently the ODF standard allows for something like this.

*** This bug has been marked as a duplicate of bug 108233 ***
Comment 8 NISZ LibreOffice Team 2020-07-23 13:20:35 UTC
(In reply to Justin L from comment #7)
> Since the DOC counterpart was set as a duplicate of bug 108233, lets do the
> same for this one since apparently the ODF standard allows for something
> like this.
> 
> *** This bug has been marked as a duplicate of bug 108233 ***

I'm not sure about that, this bugdoc in Word has two floating tables incorrectly separated, while the other bugs have one table separated with page breaks.
Comment 9 Justin L 2020-07-23 13:30:55 UTC
T(In reply to NISZ LibreOffice Team from comment #8)
> I'm not sure about that, this bugdoc in Word has two floating tables
> incorrectly separated...
Well, Word is the definitive source and it says that it should be separated. So the separation in this particular case is correct.

When bug 108233 allows LO to specify a page-break on a row, then we will be able to fix that. So you are correct, this should be a depends on instead of duplicate.
Comment 10 QA Administrators 2023-01-12 03:20:34 UTC Comment hidden (obsolete)
Comment 11 m_josenhans 2023-01-12 16:17:27 UTC
The error remains in Libre Office version from my Linux distribution KDE Neon. 

Version: 7.4.3.2 / LibreOffice Community
Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890
CPU threads: 2; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Flatpak
Calc: threaded
Comment 12 Justin L 2023-04-19 18:02:14 UTC
Note that in LO 7.6 this document loses the first table based on commit ce3308a926f036b87515b8cd97d2b197063dc77a
Author: Miklos Vajna on Wed Apr 12 08:13:07 2023 +0200
    tdf#61594 sw floattable: import floating tables as split flys by default

Miklos is actively looking for and fixing these edge cases, so a simple CC is adequate at this time.
Comment 13 Miklos Vajna 2023-04-20 07:19:44 UTC
Yes, this bug is on my list to look at once crashtesting looks better, which is the current burning fire.
Comment 14 Gabor Kelemen (allotropia) 2023-04-28 10:03:01 UTC
This also has a Section break (Next page) on the first page, like bug 137859 and bug 150769
Comment 15 Justin L 2023-05-19 15:44:15 UTC
repro - first table still lost.
Comment 16 Miklos Vajna 2023-05-31 08:06:57 UTC
(In reply to Justin L from comment #15)
> repro - first table still lost.

Let me look at this.
Comment 17 Commit Notification 2023-06-01 07:19:02 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/e2f90d1d0e51c68dd01c9968cdb7a3bbb5658613

tdf#103869 sw floattable: fix lost table right before a section break from DOCX

It will be available in 7.6.0.

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

Affected users are encouraged to test the fix and report feedback.