Bug 148294 - Manually created references are not exported correctly to .docx or .doc (become lost)
Summary: Manually created references are not exported correctly to .docx or .doc (beco...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.1.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:doc, filter:docx
Depends on:
Blocks: DOCX-Fields DOC-Fields
  Show dependency treegraph
 
Reported: 2022-03-31 15:51 UTC by Orwel
Modified: 2022-04-04 08:02 UTC (History)
3 users (show)

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


Attachments
Original file with set references (.odt) (12.96 KB, application/vnd.oasis.opendocument.text)
2022-03-31 15:52 UTC, Orwel
Details
from original file saved .docx with lost reference (4.86 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-03-31 15:52 UTC, Orwel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Orwel 2022-03-31 15:51:46 UTC
Description:
If you create own reference in LO and save file as .docx, reference will be lost.

Steps to Reproduce:
1. Write text
2. Set some reference (cross reference – set reference)
3. Insert reference (cross reference – insert reference /  refer using referenced text): 
4. save file as docx
5. open saved docx file


Actual Results:
reference is lost (if visible after reopening, update fields)

Expected Results:
reference should not be lost 


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Tested on actual version:
Version: 7.3.2.2 (x64) / LibreOffice Community
Build ID: 49f2b1bff42cfccbd8f788c8dc32c1c309559be0
CPU threads: 16; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: sk-SK (sk_SK); UI: en-GB
Calc: CL
Comment 1 Orwel 2022-03-31 15:52:19 UTC
Created attachment 179238 [details]
Original file with set references (.odt)
Comment 2 Orwel 2022-03-31 15:52:59 UTC
Created attachment 179239 [details]
from original file saved .docx with lost reference
Comment 3 Orwel 2022-03-31 15:55:16 UTC
I would like amend that the first version affected was probably also some earlier, but I can not remember.

If you re-save the original .odt file to .doc (not .docx)the reference is present.
Comment 4 sdc.blanco 2022-03-31 16:09:25 UTC
repro

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 7ac19fbce8a35f559eebb879cd0f232bfc95e703
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: da-DK (da_DK); UI: en-US
Calc: CL

Additional information: 
1. In Navigator, Reference in .odt file becomes Bookmark in .docx file
2. Not a problem if cross reference is made to page number
Comment 5 Telesto 2022-03-31 21:53:17 UTC
Setting to NEW based on comment 4
Comment 6 Telesto 2022-04-03 16:32:14 UTC
Repro
Version: 7.2.1.0.0+ (x64) / LibreOffice Community
Build ID: 8fdbb8aed1b48734a717d5f98ada566de7204605
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL

and in
Version: 7.0.0.0.beta1+ (x64)
Build ID: 2891e91a513520d68ea2b8c59c14335861a15253
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL

and in
Versie: 6.0.4.1
Build ID: a63363f6506b8bdc5222481ce79ef33b2d13c741
CPU-threads: 4; Besturingssysteem: Windows 6.3; UI-render: GL; 
Locale: nl-NL (nl_NL); Calc: CL


and in
Versie: 4.4.7.2 
Build ID: f3153a8b245191196a4b6b9abd1d0da16eead600
Locale: nl_NL

and in
Versie: 4.1.0.4 
Build ID: 89ea49ddacd9aa532507cbf852f2bb22b1ace28
Comment 7 Telesto 2022-04-03 16:37:57 UTC
@Justin,
Some dev expertise would be lovely.. Is this a file format incompatibility?