Created attachment 134530 [details]
Writer doc with database form, no macros
Open the attached text document with a database form. The form does not work because the data source specification is missing.
1. Click the [Edit] button
2. On toolbar "Form Design" or "Form Controls" turn on design mode (button #2)
3. Get the forms property (button #4), tab "Data"
4. Pick "Bibliography" from the "Data Source" drop down. Notice that the "Content" property turns blank which is expected behaviour.
5. Choose table "biblio" from the "Content" drop down.
6. Save the document.
7. Reload the document.
Result: Form document opens in read-only mode with data in the form grid.
Now repeat steps 1. to 3.
4. Click the [...] button near the "Data Source" box instead of picking the registered name. Browse to your user profile, subfolder "database" and pick biblio.odb
Repeat steps 5. to 7 (Content="biblio", save, reload)
Result: Form document opens in read-only mode with NO data in the form grid.
Repeat steps 1. to 3. The "Data Source" property is blank.
I found this with LibreOffice 220.127.116.11 on Linux.
LibreOffice 18.104.22.168 on Windows(x64) does not show this problem.
Expected behaviour is that you can specify a form's data source either by a registered name or by the URL of a database document.
Could confirm this buggy behavior. Works right with LO 5.2.5 (no newer LO 5.2-Version available), fails first with LO 22.214.171.124 here.
My system: OpenSUSE 42.2 64bit rpm Linux.
Note: LO 126.96.36.199 will show the data if the URL to the datasource has been created with LO 5.2.5. But if I try to create the URL to datasource with LO 5.3.* the data won't be shown any more when reopening the attached form-file. Will only show the data when changing designmode to input data after changing datasource.
To my surprise, the problem arises only if the form document had a former life within a Base document. My attachment was formerly embedded. If I use Writer to create an external form from scratch, the problem does not occur.
Background: My collection of Base macros: https://forum.openoffice.org/en/forum/viewtopic.php?f=21&t=77543 (FreeHSQLDB.FreeForms.Main extracts and reconnects embedded forms to a directory).
Have tested this a little bit more.
You could create an external form with link to the database. It will work right until you close the form. If you reopen the form the datasource has been gone.
You could create a form with a registered name for the database. This will work right every time. You could close and reopen without any problem.
This bug first appears with LO 5.3 on OpenSUSE 42.2 64bit rpm Linux.
Created attachment 137411 [details]
Different forms with a small database. Register database as "persons" to test.
Have set the component to "LibreOffice", because the bug appears in Writer-forms and also in Calc-forms. It isn't a Base-bug.
** Please read this message in its entirety before responding **
To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.
There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.
If you have time, please do the following:
Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/
If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.
Please DO NOT
Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not
appropriate in this case)
If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/
2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword
Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa
Thank you for helping us make LibreOffice even better for everyone!
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:
which looks like a relative path to my profile folder.
However, the actual path of the downloaded document is:
There is something wrong with the URL parser. Starting from /tmp/mozilla_andreas0/ the relative URL would point to
For some reason it points to the correct database document anyway. However, the correct relative path would be 2 levels above the document path.
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
which is 3 levels above the document path. In relative notation:
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:
Starting at /tmp/test/ that is an invalid path one level above the root folder.
Clarification to the last statement above:
I used the file picker provided in the form properties to point the form embedded in document
which is in relative notation
However, the URL stored in content.xml is this: