https://bugs.documentfoundation.org/show_bug.cgi?id=172305

            Bug ID: 172305
           Summary: LibreOffice fails to parse DOCX file with comments in
                    header: SAXParseException in XML streams
           Product: LibreOffice
           Version: 26.8.0.0 alpha0+ master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
When attempting to open a .docx file that contains comments located in the
header section, LibreOffice fails to parse the document and displays a file
format error. The parser encounters invalid XML structure during the import
process.

The error log shows the following specific exceptions:

SAXParseException: "No input source"
SAXParseException: '[word/header1.xml line 1]: unknown error', Stream
'word/header1.xml', Line 1, Column 2587
SAXParseException: '[word/document.xml line 1]: unknown error', Stream
'word/document.xml', Line 1, Column 3915
This prevents the document from loading correctly, potentially leading to data
loss if the user chooses to proceed with import.

Steps to Reproduce:
1. Launch LibreOffice Writer.
2. Go to File > Open (or use Ctrl+O).
3. Select the attached .docx file containing comments in the header section.
4. Click Open.
5. When the error dialog appears with SAXParseException, observe the detailed
error messages in the log.

Actual Results:
LibreOffice displays a file format error dialog.
The parser fails to read word/header1.xml and word/document.xml.
The document does not load. If the user clicks "Yes" to proceed, data integrity
may be compromised.

Expected Results:
LibreOffice should successfully open the .docx file, preserving all content
including comments in the header section, without throwing XML parsing errors.


Reproducible: Always


User Profile Reset: No

Additional Info:
- The original problematic file was created using a third‑party application.

- A separate test case was performed: a new document was created in LibreOffice
Writer, comments were added to the header or footer, the file was saved in
.docx format, and then reopened in LibreOffice. In this scenario, the comments
present in the header/footer were automatically deleted upon reopening.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to