Bug 127116 - FILESAVE DOCX Hyperlink with bookmark target (with white space in name) broken after export
Summary: FILESAVE DOCX Hyperlink with bookmark target (with white space in name) broke...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: medium normal
Assignee: Tünde Tóth
URL:
Whiteboard: target:6.4.0
Keywords:
Depends on:
Blocks: DOCX-Hyperlink
  Show dependency treegraph
 
Reported: 2019-08-23 12:28 UTC by NISZ LibreOffice Team
Modified: 2019-09-04 10:35 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot of the problem in Writer. (131.35 KB, image/png)
2019-08-23 12:29 UTC, NISZ LibreOffice Team
Details
Example ODT file from Writer. (8.37 KB, application/vnd.oasis.opendocument.text)
2019-08-23 12:30 UTC, NISZ LibreOffice Team
Details
The original file saved as DOCX. (4.24 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2019-08-23 12:30 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2019-08-23 12:28:34 UTC
Description:
Hyperlink created in LO with bookmark target is broken after DOCX export when the bookmark name contains white space.

Steps to Reproduce:
    1. Create a new document in Writer.
    2. On the Insert tab, choose Bookmark.
    3. Click Insert.
    4. Type text.
    5. On the Insert tab, choose Page Break.
    6. On the Insert tab, choose Hyperlink.
    7. Select Document and click on icon below Target in Document.
    8. Select the bookmark in Target in Document window.
    9. Click on Apply button, and then click on Close button in Target in Document window.
    10. Click on OK button.
    11. Save the file as DOCX.
    12. Reload the file.

Actual Results:
The hyperlink doesn’t work.

Expected Results:
The hyperlink should work after export.


Reproducible: Always


User Profile Reset: No



Additional Info:
LibreOffice details:
Version: 6.4.0.0.alpha0+ (x64)
Build ID: ec3a14ba93ba0be49170afa979f299bbf9e24300
CPU threads: 4; OS: Windows 10.0; UI render: GL; VCL: win; 
Locale: hu-HU (hu_HU); UI-Language: en-US
Calc: threaded
Comment 1 NISZ LibreOffice Team 2019-08-23 12:29:24 UTC
Created attachment 153588 [details]
Screenshot of the problem in Writer.
Comment 2 NISZ LibreOffice Team 2019-08-23 12:30:06 UTC
Created attachment 153589 [details]
Example ODT file from Writer.
Comment 3 NISZ LibreOffice Team 2019-08-23 12:30:30 UTC
Created attachment 153590 [details]
The original file saved as DOCX.
Comment 4 IM 2019-08-25 20:13:26 UTC
Thank you for reporting the bug. I can confirm that the bug is present in:

Version: 6.4.0.0.alpha0+ (x86)
Build ID: 5c30c20101f72d973ff28c228f755e635cad14d5
CPU threads: 4; OS: Windows 6.1; UI render: default; VCL: win; 
Locale: pl-PL (pl_PL); UI-Language: en-US
Calc: threaded

Version: 6.3.0.4 (x64)
Build ID: 057fc023c990d676a43019934386b85b21a9ee99
CPU threads: 4; OS: Windows 6.1; UI render: default; VCL: win; 
Locale: pl-PL (pl_PL); UI-Language: en-US
Calc: threaded
Comment 5 Commit Notification 2019-09-04 10:35:14 UTC
Tünde Tóth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/+/79939168b47ae9c8089c93f88ed322dff67203fe%5E%21

tdf#127116 DOCX export: fix hyperlink to bookmark target with spaces

It will be available in 6.4.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.