Bug 149200 - FILESAVE DOCX with hyperlink makes it unopenable in MSO
Summary: FILESAVE DOCX with hyperlink makes it unopenable in MSO
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.0.3 release
Hardware: All All
: medium normal
Assignee: Vasily Melenchuk (CIB)
URL:
Whiteboard: target:7.4.0 target:7.3.5
Keywords: bibisected, bisected, filter:docx, regression
Depends on:
Blocks: DOCX-Hyperlink
  Show dependency treegraph
 
Reported: 2022-05-20 11:17 UTC by Gabor Kelemen (allotropia)
Modified: 2022-08-12 14:59 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
attachment 180248 saved as docx with current Writer (4.52 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-05-20 11:17 UTC, Gabor Kelemen (allotropia)
Details
Error message from Word 2013 (5.97 KB, image/png)
2022-05-20 11:17 UTC, Gabor Kelemen (allotropia)
Details
The example file saved with current nightly opened in Word 2016 (22.48 KB, image/png)
2022-05-31 10:01 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2022-05-20 11:17:08 UTC
Created attachment 180249 [details]
attachment 180248 [details] saved as docx with current Writer

This is a followup on bug 149198

When the example file is saved in LO as docx and opened in Word, Word gives an error saying it found invalid content and the file can not be opened.

1, Open attachment 180248 [details] this contains a hyperlink from O365
2, Save as DOCX (under Linux)
3, Open the resulting file in Word

Word should be able to open the file, yet it sees it as invalid.

Version: 7.4.0.0.alpha1+ / LibreOffice Community
Build ID: 75f7e057039aaa49558e22d18cad651d11589da9
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: en-US
Calc: threaded

Bibisected in win7.0 to:
https://git.libreoffice.org/core/+/6f6a64952d9aa4826e83ad94c2a6de2344cbe2de 
author Miklos Vajna vmiklos@collabora.com	Tue Jan 21 21:25:08 2020 +0100

sw: add DOCX export for semi-transparent text

Adding CC to: Miklos Vajna

Note: saving the file in Word <= 2016 first and then roundtripping it results in a working file.
Comment 1 Gabor Kelemen (allotropia) 2022-05-20 11:17:40 UTC
Created attachment 180250 [details]
Error message from Word 2013
Comment 2 Timur 2022-05-23 14:05:34 UTC
I set New for DOCX. 
Save to DOC is differently wrong. 
Note that attachment 180248 [details] doesn't contain a creator info and docProps.
Comment 3 Commit Notification 2022-05-30 09:53:09 UTC
Vasily Melenchuk committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/e4e03e79fac598a9fafb0da8ab50da9a67c6978e

tdf#149200: docx export: transparent color fix

It will be available in 7.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.
Comment 4 Commit Notification 2022-05-30 11:15:20 UTC
Vasily Melenchuk committed a patch related to this issue.
It has been pushed to "libreoffice-7-3":

https://git.libreoffice.org/core/commit/de0312e81c86d3a9a1fdf1e4be4df32e2a4c6546

tdf#149200: docx export: transparent color fix

It will be available in 7.3.5.

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.
Comment 5 Timur 2022-05-30 11:46:04 UTC
This should be also checked for saving to DOC. 
While link would open in LO, the word wasn't seen in MSO.
Comment 6 Gabor Kelemen (allotropia) 2022-05-31 10:01:27 UTC
Created attachment 180492 [details]
The example file saved with current nightly opened in Word 2016

Verified in todays nightly the example file saved as DOCX is not considered incorrect by Word 2016

Version: 7.4.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: dfd5081ff3973d5d0f216b06dda6360fa490cc9c
CPU threads: 14; OS: Windows 10.0 Build 19044; UI render: default; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: threaded