Bug 145144 - Base won't delete a report or form copied form one database file to another (Windows)
Summary: Base won't delete a report or form copied form one database file to another (...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
7.1.6.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-14 19:28 UTC by philnsicab
Modified: 2022-12-13 11:06 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
db1 file to copy from (245.07 KB, application/vnd.sun.xml.base)
2021-10-14 19:30 UTC, philnsicab
Details
db2 file to paste in (221.83 KB, application/vnd.sun.xml.base)
2021-10-14 19:31 UTC, philnsicab
Details

Note You need to log in before you can comment on or make changes to this bug.
Description philnsicab 2021-10-14 19:28:58 UTC
Description:
I have two databases.

Copy a FORM from db1 to db2.
Try to delete the FORM in db2 : impossible.

Copy a REPORT from db1 to db2.
Try to delete the REPORT in db2 : impossible.

Steps to Reproduce:
1.Copy a FORM from db1 to db2.
Try to delete the FORM in db2 : impossible.

Copy a REPORT from db1 to db2.
Try to delete the REPORT in db2 : impossible.

2.Close both databases. Try again to delete : impossible.

3.The only way to delete is to unzip and remove the link in content.xml

Actual Results:
The copied form or report won't delete.
But they won't work either.

Expected Results:
The form will be deleted.
The report wil be deleted.


Reproducible: Always


User Profile Reset: No



Additional Info:
Maybe it comes from my databases so I join the files so that you can reproduce the behaviour.
Comment 1 philnsicab 2021-10-14 19:30:46 UTC
Created attachment 175744 [details]
db1 file to copy from
Comment 2 philnsicab 2021-10-14 19:31:33 UTC
Created attachment 175745 [details]
db2 file to paste in
Comment 3 Robert Großkopf 2021-10-15 07:19:43 UTC
Have seen the thread here:
https://ask.libreoffice.org/t/cant-delete-a-base-report/69226

Have tried to reproduce this in OpenSUSE 15.2 64bit rpm Linux.

Opened both db-files.
Copied a form from db1 to db2.
Form name has been changed ('1' is added) because the form exists in db2.

Could delete the new form without any problem. 
Could also delete the form after saving db2, reopening db2 …

Same behavior in LO 7.1.5.2 and LO 7.2.2.2.

Might be this is a special Windows bug.
Comment 4 Alex Thurgood 2021-10-15 08:22:50 UTC
No repro for me with

Version: 7.2.1.2 / LibreOffice Community
Build ID: 87b77fad49947c1441b67c559c339af8f3517e22
CPU threads: 8; OS: Mac OS X 10.16; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

As Robert has suggested, this appears to be a Windows only bug.
Comment 5 philnsicab 2021-10-15 17:29:32 UTC
It happens when the machine I use is windows 7.
Then I am able to copy the report only by drag on drop. When I clic to copy on the first report, I can't paste it on the second db.
Comment 6 Robert Großkopf 2021-10-15 18:52:14 UTC
Tried it also with drag and drop under OpenSUSE 15.2. Copied form could be deleted without problems.

Must be a special Windows problem.
Comment 7 Buovjaga 2022-10-19 11:00:18 UTC
Works fine for me on Windows, please re-test.

Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 4d9b83a417bbde8148b67d2ab0abe9f4ae285276
CPU threads: 2; OS: Windows 10.0 Build 19044; UI render: default; VCL: win
Locale: fi-FI (fi_FI); UI: en-US
Calc: threaded Jumbo
Comment 8 philnsicab 2022-12-13 10:58:39 UTC
Hello,
Tested on windows 7 and windows 11.
I could not reproduce the behaviour. It works fine.
Comment 9 philnsicab 2022-12-13 10:59:24 UTC
Hello,
Tested on Ubuntu 22.04.
I could not reproduce the behaviour. It works fine.
Comment 10 Buovjaga 2022-12-13 11:06:59 UTC
Thanks for following up. Tweaking fields a bit.