Bug 113149 - Wrong path for connected file based databases
Summary: Wrong path for connected file based databases
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-16 12:49 UTC by Samuel Mehrbrodt (allotropia)
Modified: 2017-10-16 14:38 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Mehrbrodt (allotropia) 2017-10-16 12:49:56 UTC
1. Create a new database
2. Select "Connect to an existing database", choose "Writer Document"
3. Choose a Writer file in the next step
4. Save the database

When you inspect the content.xml from the created odb file, you see <db:file-based-database xlink:href="../Test.odt/" ... />

The path should be absolute, not relative.
Comment 1 Robert Großkopf 2017-10-16 13:57:58 UTC
(In reply to Samuel Mehrbrodt (CIB) from comment #0)

> The path should be absolute, not relative.

Missing any argument to set a relative path to an absolute path. Same behavior for connection to Calc-files. You could copy the database and the file to another system with the same relative path and it would work. If connected like you wish it would only work for the same absolute path. Why should we construct such a restriction.
Comment 2 Samuel Mehrbrodt (allotropia) 2017-10-16 14:38:35 UTC
There is a setting in Tools -> Options -> Load/Save -> General: "Save URLs relative to file system".

When you disable that checkbox, the reference is saved as absolute path.