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

            Bug ID: 168988
           Summary: FILESAVE DOCX Certain document with invalid date in
                    date picker can't be opened in Word after roundtrip
           Product: LibreOffice
           Version: 7.3.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: bibisected, bisected
          Severity: normal
          Priority: medium
         Component: filters and storage
          Assignee: [email protected]
          Reporter: [email protected]
            Blocks: 104528, 113363, 168987

Open attachment 98549 from bug 78333, 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 552 in word/document.xml, which is this line:
<w:date w:fullDate="                                              
2012./2013.T00:00:00Z">

The document has a date picker content control with the value: "               
                               2012./2013."
Based on section 17.5.2.7 date (Date Structured Document Tag) of the OOXML
specification, fullDate should be written as ST_DateTime (xsd:dateTime) type.
However, when looking at the original document, it simply has <w:date> without
an attribute, which makes more sense when the value isn't a valid date.

This is a regression/implementation error from the following commit in 7.4, and
from its backport in 7.3:
https://git.libreoffice.org/core/commit/a4432eb0946c0bc775b3d30b634bef5d66544f8d
author          Vasily Melenchuk <[email protected]>      Wed Nov 24
14:50:12 2021 +0300
committer       Thorsten Behrens <[email protected]>       Tue Dec
21 23:23:51 2021 +0100

tdf#104823: support for sdt plain text fields


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=104528
[Bug 104528] [META] Saved DOCX files that MS Word can't open
https://bugs.documentfoundation.org/show_bug.cgi?id=113363
[Bug 113363] [META] DOCX (OOXML) content control-related issues
https://bugs.documentfoundation.org/show_bug.cgi?id=168987
[Bug 168987] [META] Regressions/implementation errors from "tdf#104823: support
for sdt plain text fields"
-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to