Bug 167341 - FILEOPEN: DocProperties lost/not shown (or included multiple times in older versions of LibreOffice Writer)
Summary: FILEOPEN: DocProperties lost/not shown (or included multiple times in older v...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.4.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-02 09:09 UTC by armin.kneringer
Modified: 2025-07-02 09:14 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Sample .docx document for behavior reproduction (20.21 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-07-02 09:14 UTC, armin.kneringer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description armin.kneringer 2025-07-02 09:09:52 UTC
Description:
- Attached .docx document includes a simple DocProperty "Test" (filled with text value "ThisIsJustAString")
 - This DocProperty is inserted into the document as conditional text/field via:
{IF {DOCPROPERTY Test \*MERGEFORMAT}<>"" {DOCPROPERTY Test \*MERGEFORMAT}}
 - If this document is opened in current LibreOffice versions the field/DocProperty is initially shown correctly
 - If this field is updated (either explicitly via "Update Field" or "Update All") the DocProperty is lost/no longer printed. (Therefore, the DocProperty will also not be included while exporting the document to PDF)
 - If the attached document is saved as .doc (via Microsoft Office) and opened via LibreOffice Writer the DocProperty will never be shown

Additional Information:
If the attached document is opened with earlier versions of LibreOffice Writer (24.8.7 or earlier) the DocProperty was written/shown 3 times. “Update selected field” does not change anything but “Update All” will show the DocProperty afterwards only twice. 


Steps to Reproduce:
1. Open attached documents via LibreOffice Writer
2. DocProperty "Test" is shown
3. Update the conditional field -> DocProperty is not shown any longer
4. Alternatively export the document to PDF and the DocProperty is no longer visible

Actual Results:
DocProperty "Test" is not shown any longer after refreshing or exporting to PDF

Expected Results:
DocProperty is shown/included as the condition defines and is not lost after refreshing the field or exporting the document to PDF


Reproducible: Always


User Profile Reset: No

Additional Info:
see above - in older versions the DocProperty was written 3 times and shortened after updating all fields.
Comment 1 armin.kneringer 2025-07-02 09:14:03 UTC
Created attachment 201602 [details]
Sample .docx document for behavior reproduction