https://bugs.documentfoundation.org/show_bug.cgi?id=94794
Bug ID: 94794
Summary: Base document is changed even if I don't introduce any
changes
Product: LibreOffice
Version: unspecified
Hardware: Other
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Base
Assignee: [email protected]
Reporter: [email protected]
I've made a little toolset (https://github.com/cmrd-senya/odb-dev-tools) to
inspect how does Libreoffice Base work and I noticed, that even when I just
open some form to view it or save the form while not doing any changes in the
editor, the changes are still introduced in my file. I think it is a bug,
because I don't want the document to be changed without my intention and
without a real need. I want changes in the format to be reduced to a required
and requested minimum.
Create a test document:
1) Create a new HSQLDB document with LO:Base.
2) Add a table with an id and a text columns.
3) Add a form and add a table to view the database table we introduced in the
step 2. Save it and close.
4) Open a form for view (not editor) and close it.
5) Save it as test.odb and close.
6) run odb_init on the file to generate a handy git repo (test.odb-dev) to
control changes.
Scenario 1. Viewing a form.
1) Open a document with LO:Base.
2) Open a form for view and close it.
3) Close the document.
4) In the test.odb-dev repository run odb_update to pull the changes from the
document.
5) Check the git diff. The document is changed.
Scenario 2. Saving a form with no changes.
1) Open a document with LO:Base.
2) Open a form for edit. You can see that the form can be saved. Save it.
3) Save and close the document.
4) In the test.odb-dev repository run odb_update to pull the changes from the
document.
5) Check the git diff. The document is changed (even more than before).
The most of the changes are reordering of elements in the XML tree. I think
these are absolutely unnecessary. Some changes are dates updates (e.g. in
database/properties). These changes are OK. In more complex documents there are
more changes, which I can't identify or describe.
If you keep repeating the scenarios, you'll keep seeing changes, so there is
possibly some random in the process of a document (de)serialization.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs