Bug 152507

Summary: Database table content not read or displayed in UI with an existing connection to ODB file
Product: LibreOffice Reporter: Alex Thurgood <iplaw67>
Component: BaseAssignee: Not Assigned <libreoffice-bugs>
Status: VERIFIED FIXED    
Severity: major CC: robert, serval2412
Priority: high Keywords: bibisectRequest, regression
Version: 7.5.0.0 beta1+   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=152538
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Screenshot of table grid display with ODBC connector

Description Alex Thurgood 2022-12-14 14:36:32 UTC
Description:
Testing with
Version: 7.5.0.0.beta1 (AARCH64) / LibreOffice Community
Build ID: 3aca23eec42e9d6fbe57071d7633ae1fc4bc5fcc
CPU threads: 8; OS: Mac OS X 13.0.1; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

using an existing, and functional ODB file which is configured to connect to a local instance of a mysql server.

When I open the ODB file, I'm asked for my password.
Correct entry of the password leads to the display of the accessible tables.
Double-click on any table entry from the list of tables.
The grid view of the opened table shows no column headers, everything is blank, and no data is displayed. The grid is only displayed as the grey coloured top and side cell structure.


Steps to Reproduce:
1. Open a ODB file which is configured to connect to a mysql server instance.
2. Double-click on a table from the list of available tables for that database.
3. Notice how the grid display contains no headers, nor rows, and no data.

Actual Results:
See above

Expected Results:
The grid view should display the data present in the table along with field names across the top of the grid.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.5.0.0.beta1 (AARCH64) / LibreOffice Community
Build ID: 3aca23eec42e9d6fbe57071d7633ae1fc4bc5fcc
CPU threads: 8; OS: Mac OS X 13.0.1; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded
Comment 1 Alex Thurgood 2022-12-14 14:38:30 UTC
For comparison, this works correctly in

Version: 7.4.1.2 / LibreOffice Community aarch64 Ventura macOS 13.0.1
Build ID: 3c58a8f3a960df8bc8fd77b461821e42c061c5f0
CPU threads: 8; OS: Mac OS X 13.0.1; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded
Comment 2 Alex Thurgood 2022-12-14 14:43:33 UTC Comment hidden (obsolete)
Comment 3 Alex Thurgood 2022-12-14 14:44:21 UTC
Hopefully, this is a problem only with the current LibreOfficeDev 7.5 beta.
Comment 4 Alex Thurgood 2022-12-14 14:50:21 UTC
Hmm, well, sorry, guess there's more to it.

If I create a new mysql/ODB file in LO 7.5 beta, none of the tables will display any data.

If I
Comment 5 Alex Thurgood 2022-12-14 14:51:27 UTC
Not sure how to test this further.
Comment 6 Alex Thurgood 2022-12-15 11:57:49 UTC
The problem manifests itself independently of the connector type.

I have now tried:

direct connector

JDBC connector

ODBC connector.

All three lead to the same result, cf attached screenshot (ODBC connector).
Comment 7 Alex Thurgood 2022-12-15 11:58:13 UTC
Created attachment 184155 [details]
Screenshot of table grid display with ODBC connector
Comment 8 Robert Großkopf 2022-12-16 06:45:19 UTC
That's not a special MySQL-bug. Opened a HSQLDB embedded and a Firebird embedded. No grid is shown, no field. Will report a new bug for this.

Did you really doesn't get this behavior with ODBC?
Comment 9 Alex Thurgood 2022-12-16 08:43:46 UTC
Comment on attachment 184155 [details]
Screenshot of table grid display with ODBC connector

Can I ask an admin to remove this image ? 
Not sure what happened here.
Comment 10 Alex Thurgood 2022-12-16 08:45:32 UTC
(In reply to Robert Großkopf from comment #8)
> That's not a special MySQL-bug. Opened a HSQLDB embedded and a Firebird
> embedded. No grid is shown, no field. Will report a new bug for this.
> 
> Did you really doesn't get this behavior with ODBC?


Hi Robert, the behaviour was also reproducible with ODBC, cf. comment 6.
Comment 11 Alex Thurgood 2022-12-16 09:14:12 UTC
Robert has confirmed that the display problem is applicable, irrespective of the type of database.

Chnaging title to reflect that.
Comment 12 Robert Großkopf 2022-12-16 10:00:20 UTC
Could reproduce it on OpenSUSE 15.3 64bit rpm Linux.

Might be it is a duplicate of
https://bugs.documentfoundation.org/show_bug.cgi?id=152538
which might be a duplicate of
https://bugs.documentfoundation.org/show_bug.cgi?id=152381

Couldn't test it, because there are no daily builds available for LO 7.5 on https://dev-builds.libreoffice.org/daily/
Comment 13 Julien Nabet 2022-12-17 13:21:15 UTC
Could you give a try with a build which includes this commit:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=0390479ccf454cd87997fe97d640caf9f8c45a13
?
Comment 14 Alex Thurgood 2022-12-19 08:22:19 UTC
(In reply to Julien Nabet from comment #13)
> Could you give a try with a build which includes this commit:
> https://cgit.freedesktop.org/libreoffice/core/commit/
> ?id=0390479ccf454cd87997fe97d640caf9f8c45a13
> ?

Hi Julien,

Seems to be working OK in 

Version: 7.6.0.0.alpha0+ (AARCH64) / LibreOffice Community
Build ID: ad387d5b984c6666906505d25685065f710ed55d
CPU threads: 8; OS: Mac OS X 13.0.1; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Calc: threaded

do we need to wait for the next 7.5 rc ?
Comment 15 Julien Nabet 2022-12-19 08:51:54 UTC
(In reply to Alex Thurgood from comment #14)
> ...
> do we need to wait for the next 7.5 rc ?

Yes, it seems there's no beta 2 according to https://wiki.documentfoundation.org/ReleasePlan/7.5.
7.5.0 RC1 should be released between 19/12 and 25/12 (still according to the quoted link).
Comment 16 Alex Thurgood 2023-03-16 13:58:06 UTC
Seems to be working OK now in

Version: 7.5.1.2 (AARCH64) / LibreOffice Community
Build ID: fcbaee479e84c6cd81291587d2ee68cba099e129
CPU threads: 8; OS: Mac OS X 13.2.1; UI render: Skia/Raster; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded