Bug 45775

Summary: PgSQL new DB allow empty Datasource
Product: LibreOffice Reporter: Lionel Elie Mamane <lionel>
Component: DatabaseAssignee: Jens Carl <j.carl43>
Status: NEW --- QA Contact:
Severity: minor    
Priority: medium CC: dr, iplaw67, jmadero.dev, lionel, lo_bugs, sasha.libreoffice
Version: 3.5.0 release   
Hardware: All   
OS: All   
Whiteboard: EasyHack DifficultyBeginner SkillCpp SkillVcl TopicUI
i915 platform: i915 features:

Description Lionel Elie Mamane 2012-02-08 05:52:43 UTC
With PostgrSQL, an empty Datasource URL is perfectly valid (connect to localhost / UNIX socket).

The "new database wizard" (choose "connect to an existing database", PostgreSQL and "next") requires something, even if only a space character. Change it to allow  empty.

It happens in source/ui/dlg/ConnectionPage{Setup,}.cxx
Comment 1 sasha.libreoffice 2012-05-16 02:37:40 UTC
Easy hack?
Comment 2 Jochen 2012-08-25 20:13:23 UTC
Is your "observation" still applicable for LO 3.6.1 RC1?
Comment 3 Anderson Cordeiro 2013-05-04 12:59:33 UTC
Hello friends
I'm working on it!

hugs
Comment 4 Lionel Elie Mamane 2013-09-02 12:08:37 UTC
Anderson, are you still working on it? Any chance to see a patch arise from your work? I would gladly review it.
Comment 5 Joel Madero 2014-02-27 23:14:32 UTC
In order to limit the confusion between ProposedEasyHack and EasyHack and to make queries much easier we are changing ProposedEasyHack to NeedsDevEval.

Thank you and apologies for the noise
Comment 6 Jens Carl 2014-06-04 00:57:22 UTC
Hey,

I would like to take this bug, but I some questions before I can start:

Is it still valid to have an empty string for the connection?
The dlg now resides dbaccess/source/ui/dlg?

The described behaviour still occurs in current master.

Jens
Comment 7 Lionel Elie Mamane 2014-06-18 17:28:49 UTC
Terribly sorry it took me so long to respond.

(In reply to comment #6)

> I would like to take this bug, but I some questions before I can start:

> Is it still valid to have an empty string for the connection?

Yes. That's a PostgreSQL feature.

> The dlg now resides dbaccess/source/ui/dlg?

Yes, AFAIK the code handling that dialog is still there. The dialog itself is the .src/.hrc file, and the .cxx files contain the C++ code that implements the actual actions behind the dialog.

> The described behaviour still occurs in current master.

Yes, as can trivially be checked by "New Database" / Connect to an existing / PostgreSQL / Next, notice that the "Next" field is greyed out until one enters something in "Datasource URL".
Comment 8 Alex Thurgood 2015-01-03 17:39:42 UTC
Adding self to CC if not already on

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.