[Libreoffice-bugs] [Bug 131392] Introduce option to "Save URLs relative to file system" for templates

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Oct 28 14:18:56 UTC 2020


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

--- Comment #15 from John <johnsmithbeatles at gmail.com> ---
As I said earlier, I have two drives: C and D. Desktop and AppData are on C.

Tests:



Test 1
Save URLs relative to file system = True

meta.xml in saved_on_desktop.odt:
<meta:template xlink:type="simple" xlink:actuate="onRequest"
xlink:title="template"
xlink:href="../../AppData/Roaming/LibreOffice/4/user/template/template.ott"

meta.xml in saved_on_drive_d.odt:
<meta:template xlink:type="simple" xlink:actuate="onRequest"
xlink:title="template"
xlink:href="file:///C:/Users/John/AppData/Roaming/LibreOffice/4/user/template/template.ott"



Test 2
Save URLs relative to file system = False

meta.xml in saved_on_desktop.odt:
<meta:template xlink:type="simple" xlink:actuate="onRequest"
xlink:title="template"
xlink:href="file:///C:/Users/John/AppData/Roaming/LibreOffice/4/user/template/template.ott"

meta.xml in saved_on_drive_d.odt:
<meta:template xlink:type="simple" xlink:actuate="onRequest"
xlink:title="template"
xlink:href="file:///C:/Users/John/AppData/Roaming/LibreOffice/4/user/template/template.ott"



I do not understand it.

Even worse, if you have both

* file:///C:/Users/JphnAppData/Roaming/LibreOffice/4/user/template/template.ott
* file:///D:/my_stuff/libreoffice/template.ott

and you have created a document from the second template (i.e., from
file:///D:/my_stuff/libreoffice/template.ott) (by double-clicking it in file
manager), the results will be as follows:



Test 1a:
Save URLs relative to file system = True

meta.xml in saved_on_desktop.odt:
<meta:template xlink:type="simple" xlink:actuate="onRequest"
xlink:title="template"
xlink:href="file:///D:/my_stuff/libreoffice/template.ott"

meta.xml in saved_on_drive_d.odt:
<meta:template xlink:type="simple" xlink:actuate="onRequest"
xlink:title="template" xlink:href="../my_stuff/libreoffice/template.ott"



Test 2a:
Save URLs relative to file system = False

meta.xml in saved_on_desktop.odt:
<meta:template xlink:type="simple" xlink:actuate="onRequest"
xlink:title="template"
xlink:href="file:///D:/my_stuff/libreoffice/template.ott"

meta.xml in saved_on_drive_d.odt:
<meta:template xlink:type="simple" xlink:actuate="onRequest"
xlink:title="template"
xlink:href="file:///D:/my_stuff/libreoffice/template.ott"



This is crazy.

-- 
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/20201028/787387db/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list