Bug 142497 - Field in Header changes when document is reopened
Summary: Field in Header changes when document is reopened
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.0.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-26 12:58 UTC by Juergen
Modified: 2021-05-26 13:45 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 Juergen 2021-05-26 12:58:06 UTC
Description:
Version: 7.1.3.2 / LibreOffice Community
Build ID: 10(Build:2)
CPU threads: 12; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: de-DE (en_GB.UTF-8); UI: en-GB
Ubuntu package version: 1:7.1.3~rc2-0ubuntu0.20.04.1~lo1

I inserted the field "filename without extension" in the header of my document. Every time I reopen it, it is chanced to filename (with extension).
The expected behaviour would be to keep the setting.

Steps to Reproduce:
I inserted the field "filename without extension" in the header of my document. 


Actual Results:
Every time I reopen it, it is chanced to filename (with extension).

Expected Results:
The expected behaviour would be to keep the setting.


Reproducible: Always


User Profile Reset: No



Additional Info:
[Information automatically included from LibreOffice]
Locale: en-GB
Module: TextDocument
[Information guessed from browser]
OS: Linux (All)
OS is 64bit: yes
Comment 1 Mike Kaganski 2021-05-26 13:25:26 UTC
... and you use DOX(X), right? :-)
Comment 2 Juergen 2021-05-26 13:30:06 UTC
Yes, because it is required by the recipient. :(
Comment 3 Mike Kaganski 2021-05-26 13:33:35 UTC
Closing NOTABUG.

MS Word file formats simply do not support this kind of field. As documented in [1], the only possible field switch for FILENAME field is \p, adding file path.

[1] https://support.microsoft.com/en-us/office/field-codes-filename-field-a2946f1b-d822-47dc-ba32-4482aece26bc?ui=en-US&rs=en-US&ad=US
Comment 4 Juergen 2021-05-26 13:45:33 UTC
Thanks Mike, next time I check first the limitations of the docx before posting a bug.