Bug 165359 - FILESAVE DOCX Document with content control fails to open in Word after roundtrip in Writer
Summary: FILESAVE DOCX Document with content control fails to open in Word after round...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
24.2.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: DOCX-Corrupted DOCX-Content_Control
  Show dependency treegraph
 
Reported: 2025-02-20 17:40 UTC by Aron Budea
Modified: 2025-02-23 21:47 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
forum-mso-en-3967.docx (27.69 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-02-20 17:40 UTC, Aron Budea
Details
forum-mso-en-2219.docx (59.61 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-02-20 17:40 UTC, Aron Budea
Details
forum-mso-en-2220.docx (61.86 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-02-20 17:41 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-02-20 17:40:24 UTC
Created attachment 199355 [details]
forum-mso-en-3967.docx

Open and save the attached DOCX files back as DOCX in Writer, then try opening the result in Word.

-> Word fails to open the file.

Looking at one of the samples, forum-mso-en-3967.docx, and document.xml in the result, it seems the problem is related to moving one of the drawings to be within sdt and sdtContent.

There is grouping around the content controls, if the grouping is removed in Word, the roundtripped file can be opened in Word again. Not sure if that is directly related to the bug or not.

Observed using LO 25.8.0.0.alpha0+ (41ab24cecd6ad74312843f113d2faa13259cdb7d) / Windows.

Regression is from the following range, which is a single commit in 24.2 Windows bibisect repo:
https://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=5dff1f3a995a8e78a156214fd9c32b1005337183..a0b003257aa87d34a4403531798d0074e19a18ac
https://git.libreoffice.org/core/+log/5dff1f3a995a8e78a156214fd9c32b1005337183..a0b003257aa87d34a4403531798d0074e19a18ac
The commit is almost certainly the following, it can be verified in Linux if someone wants to (it also fixed bug 148035):
https://cgit.freedesktop.org/libreoffice/core/commit/?id=5082d50d24c3fec4487c724a15eb0d54a82ecd0d
https://git.libreoffice.org/core/commit/5082d50d24c3fec4487c724a15eb0d54a82ecd0d
author		Jaume Pujantell <jaume.pujantell@collabora.com>	2023-09-13 08:58:21 +0200
committer	Jaume Pujantell <jaume.pujantell@collabora.com>	2023-10-11 15:19:58 +0200

writerfilter: use content controls for text in block SDTs
Comment 1 Aron Budea 2025-02-20 17:40:51 UTC
Created attachment 199356 [details]
forum-mso-en-2219.docx
Comment 2 Aron Budea 2025-02-20 17:41:24 UTC
Created attachment 199357 [details]
forum-mso-en-2220.docx