[Libreoffice-bugs] [Bug 111876] Links to Windows shares become corrupted in XLSX after save

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Aug 19 23:44:25 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=111876

--- Comment #2 from Aron Budea <baron at caesar.elte.hu> ---
I tested the behavior with local linking (eg. when the file's location is
something like C:\<path1>\linktarget.docx) and DOCX and ODS format as well.

1. Link in ODS (local and Windows share)

ODS stores proper relative link (so what it takes to go from path2 -> path1)
right from the first save.
Of course in case of Windows shares this is not what we'd like.

2. Local link in XLSX

It's the same as the remote link: upon first save the absolute link is saved in
the file.
Upon subsequent save it's replaced with an incorrect,
'file:///<path1>\linktarget.docx' kind of link.
In this case the link works (unlike with remote shares), but this is not a
proper relative link.

3. Link to Windows share in DOCX

The link is saved slightly differently, as
'file://<share>/<path1>/linktarget.docx' (note the backslash vs. slash
difference).
This format persists after the second save, too (the link stays absolute), and
thus the link keeps working.

On the other hand, local links are saved similarly, and not as relative (or
rather, honoring the absolute/relative setting).


Unfortunately each of these are wrong under certain circumstances...

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170819/6840ed03/attachment.html>


More information about the Libreoffice-bugs mailing list