Bug 138201 - impossible to delete table after opening the report
Summary: impossible to delete table after opening the report
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.1.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevAdvice
Depends on:
Blocks:
 
Reported: 2020-11-13 20:06 UTC by ablogic
Modified: 2022-12-15 07:24 UTC (History)
3 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 ablogic 2020-11-13 20:06:42 UTC
Description:
After opening the report the table stay in use and it is impossible to delete without reopening the odb file.
Error mesage:
firebird_sdbc error:
*unsuccessful metadata update
*object TABLE "test2" is in use
caused by
'DROP TABLE"test2"'

Steps to Reproduce:
1.create an odb file with firebird embedded
2.create a table
3.create a report based on the table
4.open the report
5.close the report
6.try to delete the table of the report

Actual Results:
Deleting the table of the report is impossible
Error mesage:
firebird_sdbc error:
*unsuccessful metadata update
*object TABLE "table" is in use
caused by
'DROP TABLE"table"'

Expected Results:
table deleted


Reproducible: Always


User Profile Reset: No



Additional Info:
Error mesage:
firebird_sdbc error:
*unsuccessful metadata update
*object TABLE "table" is in use
caused by
'DROP TABLE"table"'
Comment 1 Terrence Enger 2020-11-15 18:31:20 UTC
 Working with a local build of commit 38b1497d (2020-11-04), built and
running on debian-buster, I have created the reported problem.  My
error message carries the additional information:

    /home/terry/lo_hacking/git/libo6/connectivity/source/drivers/firebird/Util.cxx:68

Further observations:

(*) The problem persists if the .odb is saved and reopened between
    steps 3 and 4.

(*) If the saved .odb is opened there is no problem deleting the table
    without steps 4 and 5.


Bug 128518 also reports the inability to delete a table from an
embedded Firebird database, but I am confirming the present bug
because:

(*) That bug was closed a year ago.

(*) The difficulty in that bug followed editing the table.  There was
    no report involved.

(*) Commenters on that bug got varying results.  This bug does not
    (yet) have that complication.


I see it as wrong that LibreOffice relies (even accidentally) upon
previous execution of the report when it allows or disallows deletion
of the table.  I do not have an opinion on whether LibreOffice should
allow deletion of that table while a referencing report exists.  But
if deletion is disallowed, the error message should say why, and LO
need not attempt the deletion at all.  I am adding keyword
needsUXEval.


If, after deleting successfully deleting table, you run the report
anyway, the resulting error message is impolite.  I have reported this
as bug 138241.
Comment 2 Robert Großkopf 2020-11-15 18:57:54 UTC
This buggy behavior has nothing to do with https://bugs.documentfoundation.org/show_bug.cgi?id=128518
There had been reported deleting of the table is impossible. No error, no warning, nothing to do with the report.

In this case it seems opening the report says to Firebird: Table is needed. But closing the report doesn't free the table. You have to close the connection to Firebird by reloading the database file. Then you could delete the table.
Comment 3 ablogic 2020-11-19 10:17:07 UTC
With Hsqlbd embbeded, LibreOffice allows deletion even after opening the report.
It would be better to allow deletion with Firebird embbeded also?
Comment 4 Heiko Tietze 2020-12-14 15:39:31 UTC
If deletion is not possible I suggest to show a confirmation box and explain what causes the misanticipation. => needsdevadvice
Comment 5 QA Administrators 2022-12-15 03:21:03 UTC Comment hidden (obsolete)
Comment 6 Robert Großkopf 2022-12-15 07:24:48 UTC
Still the same buggy behavior with LO 7.4.3.2 on OpenSUSE 15.3 64bit rpm Linux.