https://bugs.documentfoundation.org/show_bug.cgi?id=159974
Bug ID: 159974
Summary: Libre Office is unable to display custom date property
properly
Product: LibreOffice
Version: 7.6.4.1 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Description:
When exporting an MS Word document from SharePoint and afterwards embedding a
custom date property inside said document, Libre Office is unable to display
this property correctly. In the attachments, I have provided two documents, one
of which was initially saved in MS Word. This document will be displayed
correctly in MS Word but when opening it in Libre Office the date property is
set to “ 30.12.1899 00:00:00” instead of “01.02.2024 15:00:00”.
The suspected problem is that Libre Office is unable to parse the underlying
xpath which links to the value of the date property. This is likely the case
because when opening the document in LibreOffice, setting the property to a new
value and afterwards saving it, the xpath is different from the original one.
As shown below the original xpaht is different from the updated one. The only
difference between them is that saving the initial document decodes the
underscore into x005F which represents said character. So the bug results from
not being able to decode the xpath correctly and updating it to a parsable
format.
As additional information, I have provided the two documents as attachments.
The first one named “initialWord.docx” is the initial document exported from
SharePoint and the second one is the updated one saved in Libre Office named
“updatedLibreOffice.docx”.
Steps to Reproduce:
1. Open the document from attachments in MS Word
2. Insert document property
2. Save document
4. Open document in Libre Office
Actual Results:
30.12.1899 00:00:00 probably caused by:
w:xpath="/ns0:properties[1]/documentManagement[1]/ns3:q_Freigabe_x005F_x002d_Datum[1]"
Expected Results:
01.02.2024 15:00:00 caused by the correct xpath:
w:xpath="/ns0:properties[1]/documentManagement[1]/ns3:q_Freigabe_x002d_Datum[1]"
Reproducible: Always
User Profile Reset: No
Additional Info:
-
--
You are receiving this mail because:
You are the assignee for the bug.