Bug 124802 - Base forms will not delete
Summary: Base forms will not delete
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
6.2.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-17 16:10 UTC by pbyrne76
Modified: 2019-05-16 09:43 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
odb and scheme creation script (2.53 MB, application/x-zip-compressed)
2019-04-17 16:10 UTC, pbyrne76
Details
test file (2.58 MB, application/vnd.oasis.opendocument.database)
2019-04-18 08:33 UTC, Julien Nabet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pbyrne76 2019-04-17 16:10:38 UTC
Created attachment 150831 [details]
odb and scheme creation script

There are two forms in the attached .odb that will not delete named:
DeleteME and DeleteMe2. As you can see, the forms cannot be opened either. 

The database is an MariaDB 10.3.13 32-bit and the attached .sql contains the schema.
Comment 1 Julien Nabet 2019-04-18 08:33:47 UTC
Created attachment 150845 [details]
test file

On pc Debian x86-64 with master sources updated today, I could reproduce this.
However I noticed these logs:
warn:dbaccess:16597:16597:dbaccess/source/ui/app/AppControllerDnD.cxx:272: DBG_UNHANDLED_EXCEPTION in void dbaui::OApplicationController::deleteObjects(dbaui::ElementType, const std::__debug::vector<rtl::OUString>&, bool) exception: com.sun.star.container.NoSuchElementException message: /home/julien/lo/libreoffice/package/source/xstor/xstorage.cxx:2808: 

Unzipping the odb file, I noticed in content.xml references to Obj82 and Obj41 for these forms and indeed the corresponding files weren't present in the odb file.
I just removed the references from content.xml and rezip the whole structure.

1) Could you confirm the file I attached is ok?

2) Would you know a process to recreate a file from scratch with at least 1 form impossible to remove?
Comment 2 pbyrne76 2019-04-18 13:21:36 UTC
Thanks for the quick evaluation. I can confirm the fixed odb works fine and the forms are gone. 

I don't know the sequence of steps that will reproduce the problem unfortunately, so I can't help you out. If I do find a method to reproduce I will update the ticket.
Comment 3 Xisco Faulí 2019-05-16 09:43:21 UTC
Closing as RESOLVED INSUFFICIENTDATA then.
Feel free to put it back to UNCONFIRMED if you can provide the information asked in comment 1