[Libreoffice-bugs] [Bug 109004] External form does not save the path to database any more.

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Nov 4 10:18:03 UTC 2018


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

--- Comment #8 from Andreas Säger <villeroy at t-online.de> ---
When I download and open my initial text document of 2017-07-07, the form does
work indeed. The data source URL pointing to my "Bibliography" database is
specified as follows:

file:///../home/andreas/.config/libreoffice/4/user/database/biblio.odb

which looks like a relative path to my profile folder.
However, the actual path of the downloaded document is:

file:///tmp/mozilla_andreas0/BiblioFormBug.odt

There is something wrong with the URL parser. Starting from
/tmp/mozilla_andreas0/ the relative URL would point to 
/tmp/home/andreas/.config/libreoffice/4/user/database/biblio.odb. 
For some reason it points to the correct database document anyway. However, the
correct relative path would be 2 levels above the document path.

file:///../../home/andreas/.config/libreoffice/4/user/database/biblio.odb
with ../../ instead of  ../

When I hit the ellipsis button near the data source property box, the property
shows a correct absolute URL
file:///home/andreas/.config/libreoffice/4/user/database/biblio.odb but that
one fails to connect with the database document.

Now I move the form document to file:///tmp/test/foo/bar/baz/BiblioFormBug.odt
without adjusting the database path. The form tries to access

file:///tmp/test/home/andreas/.config/libreoffice/4/user/database/biblio.odb
which is 3 levels above the document path. In relative notation: 
../../../home/andreas/etc

The form finds its database again when I move it 2 levels higher to
/tmp/test/foo/BiblioFormBug.odt
However it fails again when I specify the database path using the ellipsis
button. The button seems to generate a wrong relative URL. In content.xml I
find this path:

<form:connection-resource
xlink:href="../../../home/andreas/.config/libreoffice/4/user/database/biblio.odb"/>
Starting at /tmp/test/ that is an invalid path one level above the root folder.

-- 
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/20181104/64b4b7ad/attachment.html>


More information about the Libreoffice-bugs mailing list