Bug 138949 - Collabora LO VANILLA - ODB file open fails to create a connection to a mysql instance over the mysql native connector
Summary: Collabora LO VANILLA - ODB file open fails to create a connection to a mysql ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
7.0.3.1 release
Hardware: ARM macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, regression
: 141830 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-12-15 16:50 UTC by Alex Thurgood
Modified: 2023-12-20 10:16 UTC (History)
5 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 Alex Thurgood 2020-12-15 16:50:59 UTC
Description:
Trying to load an ODB file into LO Vanilla.
Open ODB file that is configured to connect to a mysql instance over the native mysql connector.
The main ODB window opens, and the ID/pwd is requested.
Enter the required connection IDs.

Error message displayed:
Impossible d'établir la connexion à la source de données « mydbconnection ».
Statut SQL: HY000

Impossible d'établir une connexion à la source de données externe. Aucun pilote SDBC n'a été trouvé pour l'URL 'sdbc:mysql:mysqlc:127.0.0.1:3306/mydb'.

Une connexion pour l'URL suivant était requise « sdbc:mysql:mysqlc:127.0.0.1:3306/mydb ».



Steps to Reproduce:
See above

Actual Results:
No connection to data source is made within ODB file.

Expected Results:
The datasource should be loaded, and MetaData retrieved to allow display of the tables.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.0.3.2
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 8; OS: Mac OS X 10.16; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR
Calc: threaded
Comment 1 Alex Thurgood 2020-12-17 06:29:35 UTC
Given the response in bug 138946, LO Vanilla deliberately doesn't integrate all of the code to support the mysql native connector, which means that the behaviour reported is not a bug.

As direct mysql/mariadb access is our daily necessity at work, I have no need for a version of LO that doesn't support such an access.
Comment 2 Alex Thurgood 2021-05-01 15:40:48 UTC
Setting to RFE then.
Comment 3 Alex Thurgood 2021-05-01 15:46:31 UTC
*** Bug 141830 has been marked as a duplicate of this bug. ***
Comment 4 Aron Budea 2021-05-01 23:10:52 UTC
I don't know where the various restrictions are coming from, but perhaps it's worth thinking about what's needed so an LO version in the Mac app store can have working database support.
Comment 5 Alex Thurgood 2021-09-21 14:20:38 UTC
Still reproducible in 

Version: 7.2.0.4 / LibreOffice Community
Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b
CPU threads: 8; OS: Mac OS X 11.5.2; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded
Comment 6 Michael Meeks 2021-09-21 14:31:06 UTC
AFAIR the Mysql connector library is not helpfully licensed, and so not compiled in.

connectivity/source/drivers/mysqlc/mysqlc_general.h:

#include <config_lgpl.h>

I forget what we did to try to address that; it's possible that the code was re-written to target the mariadb C library directly but ... Lionel or Tomi would know I expect.
Comment 7 Alex Thurgood 2021-09-21 14:36:02 UTC
@Michael : my understanding was that the mariadb connector library was built by default these days, at least on Linux and Windows.



I've decided to mark this as a bug, rather than a RFE.

If LibreOffice Vanilla/Community installed through the app store is going to bear the same name as the TDF version, should it not at least offer the same functionality?

All of the links on the About dialog point to LibreOffice.org website pages.
This means that the user of LibreOffice Vanilla thinks that this product is the same as the LibreOffice product available for download from the LibreOffice project download page.

Clearly, as this bug report shows, that is not the case.

If there is a distinction to be made in LO-Vanilla over LO-TDF, due to it being provided by Collabora, then perhaps the About dialog should be amended here too to point out those differences.
Comment 8 Lionel Elie Mamane 2021-09-21 14:52:29 UTC
(In reply to Michael Meeks from comment #6)
> AFAIR the Mysql connector library is not helpfully licensed, and so not
> compiled in.
> 
> connectivity/source/drivers/mysqlc/mysqlc_general.h:
> 
> #include <config_lgpl.h>
> 
> I forget what we did to try to address that; it's possible that the code was
> re-written to target the mariadb C library directly

Yes, it was.

So we switched from dependency on a GPL (+ exceptions) library (the MySQL C++ connector) to a dependency on an LGPL library only (the MariaDB C library). Is LGPL not allowed in the Collabora builds?
Comment 9 QA Administrators 2023-12-20 03:12:51 UTC Comment hidden (obsolete)
Comment 10 Alex Thurgood 2023-12-20 10:06:34 UTC
Bug present (same error message) in Collabora Productivity

Version: 23.05.6.3 (AARCH64)
Build ID: 93b0363b27a67dae4836d417bb53178ef4e11344
CPU threads: 8; OS: Mac OS X 14.1.1; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded
Comment 11 Alex Thurgood 2023-12-20 10:16:41 UTC
Bug not present in 

Version: 7.5.9.2 (AARCH64) / LibreOffice Community
Build ID: cdeefe45c17511d326101eed8008ac4092f278a9
CPU threads: 8; OS: Mac OS X 14.1.1; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded