Bug 126183 - Different results of "Test Connection" if table connected to ODS File dependent on VCL engine
Summary: Different results of "Test Connection" if table connected to ODS File depende...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
6.2.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-01 21:35 UTC by Eugen
Modified: 2021-08-25 21:29 UTC (History)
1 user (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 Eugen 2019-07-01 21:35:13 UTC
Description:
Two different buttons "test connection" with different result. Th user will be confused.

Steps to Reproduce:
I created a ODS File with a few addresses and saved it as ODS file "Adressen.ods".
Then created a new ODB and connected it to the ODS file.

In Database - Tables - <Sheet1> - <double-click>: the content of the ODS is shown in "table data view: OK
Right click on Tables - <Sheet1> - Database - property - "Test Connection":
--> Error is shown
"A driver is not registered for the URL ~sdbc:calc:/home/<path>/Adressen.ods"

Right click on Tables - <Sheet1> - Database - Data Source Properties - Database type: Spreadsheet - Next - "Test Connection"
--> no Error:
"Connection Test: The connection was established successfully"


Actual Results:
So, why there a one time a error message and another time a success message.
It makes no sense for the user, I think.

Expected Results:
Both "test connection" should success


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 Robert Großkopf 2019-07-02 15:03:49 UTC
Have tested both ways to test the connection to the *.ods-file. Couldn't reproduce an error. The connection is established every way I could test.

Tested with LO 6.2.5.2 on OpenSUSE 64bit rpm Linux.
Comment 2 Eugen 2019-07-02 19:22:13 UTC
I have done more tests and found a workaround.

First, my setup, which has this error is:
LibreOffice 6.2.4.2 (VCL kde5 !), installed via apt-get in my Kubuntu 64bit

Then I removed the package "libreoffice-kde5"  (1:6.2.4-0ubuntu0.19.04.1) 
The package "libreoffice-gtk3" (1:6.2.4-0ubuntu0.19.04.1) was already installed and is now active

Now it works with:
LibreOffice 6.2.4.2 (VCL gtk3 !), installed via apt-get in my Kubuntu 64bit: The connection is established in both ways --> OK

Crosscheck:
Install package "libreoffice-kde5"  (1:6.2.4-0ubuntu0.19.04.1) with apt-get: Error as described reappeares

Other Systems I tested, which do it right:
LibreOffice 6.2.4.2 (VCL gtk3 !) on another PC Linux Mint 32bit: The connection is established in both ways --> OK
LibreOffice 6.2.4.2 (VCL gtk3 !) on my Kubuntu via snap 64bit: The connection is established in both ways --> OK

It seem that the package "libreoffice-kde5" causes this.
Comment 3 Robert Großkopf 2019-07-02 19:39:04 UTC
OK, I can reproduce it with  VCL: x11. If I test the connection with contextmenue of the table > Database > Property > Test Connection it fails and the connection to the database has gone.

Tested with LO 6.3.0.0beta2 on OpenSUSE 15, 64bit rpm Linux

Works right with VCL: gtk3.

So a special bug of VCL.
Comment 4 QA Administrators 2021-08-12 03:57:13 UTC Comment hidden (obsolete)
Comment 5 Robert Großkopf 2021-08-12 06:43:17 UTC
Couldn't confirm the buggy behavior any more with

Version: 7.1.5.2 / LibreOffice Community
Build ID: 85f04e9f809797b8199d13c421bd8a2b025d52b5
CPU threads: 6; OS: Linux 5.3; UI render: default; VCL: kf5
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Calc: threaded

Same version with VCL: x11 won't show the bug.

… but: the path description has been changed
table → Database → Properties…
table → Database → Connection Type…

All tested with OpenSUSE 15.2 64bit rpm Linux.

I will set this one to WORKSFORME. Feel free to reopen if you could see the bug with LO 7.1 or newer.
Comment 6 Eugen 2021-08-25 21:29:38 UTC
The bug seemed to be resolved.

My used versions:
Version: 7.1.5.2 / LibreOffice Community
Build ID: 10(Build:2)
CPU threads: 12; OS: Linux 5.11; UI render: default; VCL: kf5
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Ubuntu package version: 1:7.1.5-0ubuntu0.21.04.1
Calc: threaded