<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - External form does not save the path to database any more."
href="https://bugs.documentfoundation.org/show_bug.cgi?id=109004#c8">Comment # 8</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - External form does not save the path to database any more."
href="https://bugs.documentfoundation.org/show_bug.cgi?id=109004">bug 109004</a>
from <span class="vcard"><a class="email" href="mailto:villeroy@t-online.de" title="Andreas Säger <villeroy@t-online.de>"> <span class="fn">Andreas Säger</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>