[Libreoffice-bugs] [Bug 126255] Relative links broken in Calc

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Jul 8 11:40:52 UTC 2019


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

Eike Rathke <erack at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|libreoffice-bugs at lists.free |erack at redhat.com
                   |desktop.org                 |
             Status|NEW                         |ASSIGNED

--- Comment #5 from Eike Rathke <erack at redhat.com> ---
(In reply to Jan-Marek Glogowski from comment #0)
> <text:a xlink:href="../xlsx/databar.xlsx"
> xlink:type="simple">/devel/libo/libo1/sc/qa/unit/data/xlsx/databar.xlsx</
> text:a>
> 
> For me LO fails to open the link, because it resolves the wrong target.
> 
> origin: /libreoffice/sc/qa/unit/data/ods/fdo79305.ods
> target: /libreoffice/sc/qa/unit/data/ods/xlsx/databar.xlsx
> - an ods too much.
Given the  xlink:href="../xlsx/databar.xlsx"  the target is correct, it's not
one ods too much but one ../ too little in the href. The first ../ escapes the
ODF package (.ods) so to target a file ../xlsx/databar.xlsx relative to the
current file it should be xlink:href="../../xlsx/databar.xlsx" instead.

That's exactly what my follow-up commit
https://cgit.freedesktop.org/libreoffice/core/commit/?id=bc3b62e25eb0c3921fa600e80eeb314e45ecaaef
to bug 79305 addressed, but the test document wasn't adapted.

I have no adhoc idea why the test apparently failed only on Windows if the
target doesn't exist. I'll correct the test document and revert the temporary
"fix" and then remove the #if !defined _WIN32 to see if Windows boxes still
stumble upon.

-- 
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/20190708/d907862e/attachment.html>


More information about the Libreoffice-bugs mailing list