Bug 114832 - Filesave: "File name without Extension" and "Path" Fields saved as DOCX open as "File name" in Writer while correctly shown in Word
Summary: Filesave: "File name without Extension" and "Path" Fields saved as DOCX open ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.3.0 release
Hardware: All All
: low normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Fields
  Show dependency treegraph
 
Reported: 2018-01-04 10:25 UTC by Timur
Modified: 2020-11-26 16:42 UTC (History)
0 users

See Also:
Crash report or crash signature:
Regression By:


Attachments
Example odt with the file name fields (8.87 KB, application/vnd.oasis.opendocument.text)
2020-11-26 15:49 UTC, NISZ LibreOffice Team
Details
The example odt saved to docx (4.44 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-11-26 15:49 UTC, NISZ LibreOffice Team
Details
The example odt and docx side by side in Writer (65.89 KB, image/png)
2020-11-26 15:56 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timur 2018-01-04 10:25:55 UTC
This is DOCX bug for issue described in Bug 108459 which is for DOC.

Steps to reproduce: 
1. Open new file in writer 
2. "Insert | Field | More Fields : file name, file name without extension, path, path/file name
3. Save file in *.docx format and close 
4. Open same file in MSO Word and LO Writer 
Experienced: "File name" and "path/file name" fields saved by LO in DOCX open fine with LO while "file name without extension" and "path" don't. All 4 fields from that LO created DOCX open fine in MSO.
Expected: All 4 fields shown properly when open again with LO Writer.
Comment 1 Thomas Lendo 2018-01-10 21:23:46 UTC
Confirmed with Version: 6.1.0.0.alpha0+
Build-ID: acb43c0b8efbfb841e7b40603d75a8432eb21f21
CPU-Threads: 4; BS: Linux 4.10; UI-Render: Standard; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2018-01-09_01:20:44
Gebietsschema: de-DE (de_DE.UTF-8); Calc: group threaded
Comment 2 QA Administrators 2019-01-11 03:54:03 UTC Comment hidden (obsolete)
Comment 3 NISZ LibreOffice Team 2020-11-26 15:49:21 UTC
Created attachment 167592 [details]
Example odt with the file name fields
Comment 4 NISZ LibreOffice Team 2020-11-26 15:49:49 UTC
Created attachment 167593 [details]
The example odt saved to docx
Comment 5 NISZ LibreOffice Team 2020-11-26 15:56:31 UTC
Created attachment 167594 [details]
The example odt and docx side by side in Writer

The Path and File name without extension fields are exported incorrectly, as "File name" fields.

Looking at it in Word it seems there is only a File name field which may contain the path - and these two work fine.

However if there are no equivalents for "Path" and "File name without extension" fields", it will be difficult to export those either to doc or docx.
Comment 6 Timur 2020-11-26 16:38:12 UTC
Thanks for comparison. Filesave should always open both in LO and MSO, though. 
I cannot retest now, but I wrote before that all opens fine in MSO.