Bug 165941 - FILEOPEN DOCX Certain document opens with error
Summary: FILEOPEN DOCX Certain document opens with error
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
6.4.0.3 release
Hardware: All All
: medium normal
Assignee: Miklos Vajna
URL:
Whiteboard: target:25.8.0 target:25.2.3 target:24...
Keywords: bibisected, bisected, regression
Depends on:
Blocks: DOCX-SAXParse DOCX-Fields
  Show dependency treegraph
 
Reported: 2025-03-28 06:36 UTC by Aron Budea
Modified: 2025-04-07 20:17 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
forum-mso-en-12425.docx (83.53 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-03-28 06:36 UTC, Aron Budea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aron Budea 2025-03-28 06:36:37 UTC
Created attachment 200056 [details]
forum-mso-en-12425.docx

Open the attached DOCX file, forum-mso-en-12425.docx in Writer.

=> Writer shows an error dialog that SAXException occurred when opening file, and offers repair.
Choosing no reveails further details, a SAXParseException in the following part in word/document.xml, in the marked line:

<w:pPr>
  <w:keepNext/>
  <w:spacing w:before="60" w:after="60" w:line="240" w:lineRule="exact"/>
  <w:rPr>
    <w:sz w:val="19"/>
    <w:szCs w:val="19"/>        <- here
  </w:rPr>
</w:pPr>

Observed with LO 25.8.0.0.alpha0+ (81dfc7afcdc473bd655ff64038e8a449a9999c0c) / Windows.

This is a regression since the following commit in 6.4:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=97f9af714ea1c46e498fa99f7ca34fc1708d38a6
author		Miklos Vajna <vmiklos@collabora.com>	2019-10-30 16:02:35 +0100
committer	Miklos Vajna <vmiklos@collabora.com>	2019-10-30 22:02:15 +0100

Related: tdf#125038 DOCX import: fix unexpected linebreak inside IF condition
Comment 1 Commit Notification 2025-04-04 12:31:20 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

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

tdf#165941 DOCX import: fix unhandled exc while removing dummy para in table

It will be available in 25.8.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.
Comment 2 Commit Notification 2025-04-07 14:09:09 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "libreoffice-25-2":

https://git.libreoffice.org/core/commit/452fb8e9373c3add5937d4751fe6901d07c46d55

tdf#165941 DOCX import: fix unhandled exc while removing dummy para in table

It will be available in 25.2.3.

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.
Comment 3 Commit Notification 2025-04-07 20:17:59 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "libreoffice-24-8":

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

tdf#165941 DOCX import: fix unhandled exc while removing dummy para in table

It will be available in 24.8.7.

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.