Bug 168977 - FILESAVE DOCX Document with chart in footer can't be opened in Word after roundtrip
Summary: FILESAVE DOCX Document with chart in footer can't be opened in Word after rou...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
7.2.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: DOCX-Header-Footer DOCX-Corrupted
  Show dependency treegraph
 
Reported: 2025-10-21 08:00 UTC by Aron Budea
Modified: 2025-10-21 08:00 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aron Budea 2025-10-21 08:00:08 UTC
Open attachment 96041 [details] from bug 76356 (in other name, fdo76356-1.docx), a DOCX, save it back to DOCX format, and try opening it in Word.

=> Word can't open the file cleanly.

If one:
- unzips the saved DOCX,
- executes the following command (can be done in Linux/Cygwin, needs xmllint installed): find . \( -name "*.xml" -o -name "*.rels" \) -type f -exec xmllint --output '{}' --format '{}' \;
- rezips the files with DOCX extension,

Word points to line 37 in word/document.xml, which is this line:
<w:footerReference w:type="first" r:id="rId7"/>
(rId7 refers to footer3.xml)

Observed with LO 26.2.0.0.alpha0+ (8ea8e254a3151f5390f3a10ff156fcaf8e7c5d5c), 7.2.0.4 / Windows.

This is a regression/implementation error from the following commit in 7.2, before that only a single header/footer XML was exported:
author		Daniel Arato (NISZ) <arato.daniel@nisz.hu>	Fri Feb 05 12:07:48 2021 +0100
committer	László Németh <nemeth@numbertext.org>	Tue May 04 19:14:22 2021 +0200

tdf#69635 DOCX: export hidden (shared) headers/footers