Bug 169101 - FILESAVE DOCX Certain document with data binding in date picker can't be opened in Word after roundtrip
Summary: FILESAVE DOCX Certain document with data binding in date picker can't be open...
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
7.5.0.3 release
Hardware: All All
: medium normal
Assignee: Aron Budea
URL:
Whiteboard:
Keywords: bibisected, bisected, implementationError
Depends on:
Blocks: DOCX-Corrupted DOCX-Content_Control
  Show dependency treegraph
 
Reported: 2025-10-27 17:07 UTC by Aron Budea
Modified: 2025-10-27 17:08 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Sample DOCX (24.17 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-10-27 17:07 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-10-27 17:07:59 UTC
Created attachment 203572 [details]
Sample DOCX

Open the attached DOCX, a shortened version of forum-mso-en-863.docx, save it back to DOCX format, and try opening it in Word.

=> Word can't open the file cleanly.

The document has a date field showing "Week #". When opened in Writer, this is shown as "30 december 1899", which is also a bug.

This started from the following commit in 7.5, seems to be implementation error:
https://git.libreoffice.org/core/commit/58002ab85d992c7ac44d8bb4d135246b67aa5cc7
author		Miklos Vajna <vmiklos@collabora.com>	Wed Oct 26 10:03:04 2022 +0200
committer	Miklos Vajna <vmiklos@collabora.com>	Wed Oct 26 10:47:59 2022 +0200

"sw content controls: enable data binding for date"

Bug also seems similar to bug 168988, the immediate cause is actually the same, invalid 'w:fulldate' attribute:
<w:date w:fullDate="Week #">
(spoiler alert: it's a different bug)