https://bugs.documentfoundation.org/show_bug.cgi?id=159110
Bug ID: 159110
Summary: LibreOffice stores URLs in files incorrect
Product: LibreOffice
Version: 7.6.4.1 release
Hardware: All
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Description:
Hi!
I use LO with CLI to convert .docx to .pdf and faced with this issue.
I use LibreOffice 7.6.4.1 and 7.5.9.2 and noticed one moment with URLs that LO
removes additional space (%20).
Example link:
https://google.com/Reference%20%20Materials/Tools%20%20-%20CPMC%20Approved%20List.pdf
I have .docx file with correct (above) link. If I open this file in LO -
everything is ok and I can see double space in link.
If I save w/o changes this file using LO (word 2007 or 2010 .docx) I can see
that everything is ok when opening this file in MS Word (I have 2 spaces in
link) but opening this file in LO shows me only one space :
https://google.com/Reference%20Materials/Tools%20-%20CPMC%20Approved%20List.pdf
If I open resaved with LO file and export to PDF - I also have link with one
space.
If I unzip original .docx file and saved with LO file, I can see:
word -> _rels -> document.xml.rels
Original .docx:
<Relationship Id="rId4"
Target="https://google.com/Reference%20%20Materials/Tools%20%20-%20CPMC%20Approved%20List.pdf"
TargetMode="External"
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink"/>
<Relationship Id="rId5"
Target="https://google.com/Reference%20%20Materials/Tools%20%20-%20CPMC%20Approved%20List.pdf"
TargetMode="External"
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink"/>
Saved by LO:
<Relationship Id="rId2"
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink"
Target="https://google.com/Reference Materials/Tools - CPMC Approved
List.pdf" TargetMode="External"/>
<Relationship Id="rId3"
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink"
Target="https://google.com/Reference Materials/Tools - CPMC Approved
List.pdf" TargetMode="External"/>
Copy link or Ctrl-click opens incorrect link with one space. The problem is
only with docx file saved by LO. And in MS Word I can see two spaces in link
but LO shows me one space and future processes with doc work with one space.
But for me its broken link.
Steps to Reproduce:
1. Create .docx file with any correct link (encoded) with two or more spaces
(Example:
https://google.com/Reference%20%20%20Materials/Tools%20%20-%20CPMC%20%20Approved%20List.pdf)
2.Open file in LibreOficce and resave it to the same format.
3.Open file with LibreOffice and copy or show link - it contains only one
space.
Actual Results:
The URLs with more than one space aren’t stored in the file correctly
Expected Results:
The URLs are stored in the file correctly
Reproducible: Always
User Profile Reset: No
Additional Info:
Version: 7.5.9.2 (X86_64) / LibreOffice Community
Build ID: cdeefe45c17511d326101eed8008ac4092f278a9
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
--
You are receiving this mail because:
You are the assignee for the bug.