This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 149489

Summary: Not specified parameters for PostgreSQL connections should have default values
Product: db Reporter: Roman Mostyka <romanmostyka>
Component: CodeAssignee: matthias42
Status: VERIFIED FIXED    
Severity: blocker CC: medeag
Priority: P4 Keywords: UI
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 152580    

Description Roman Mostyka 2008-10-08 12:03:49 UTC
1. Rightclick "Databases" node and choose "New Connection...".
2. Choose PostgreSQL driver.
3. Type DB name according to a message at the bottom. Click "OK" since there is no other messages.

Result: Error message appears and URL in it without host. Host name should be obligatory to specify or it should have
some default value if it is not specified (for example IDE always tries to connect to localhost by default if host isn't
specified, the same about port).
I filed different issue than MySQL, since there is a difference between obligatory fields for different DBs, for example
for Oracle everything is fine. For better tracking I will file one issue against each DB. I can close them all after
they will be fixed.
Comment 1 David Vancouvering 2008-10-09 18:43:22 UTC

*** This issue has been marked as a duplicate of 149487 ***
Comment 2 David Vancouvering 2008-10-09 18:43:49 UTC
That duplicate entry was incorrect.
Comment 3 Jiri Rechtacek 2009-02-10 15:38:01 UTC
Reassigned to new owner.
Comment 4 matthias42 2015-02-24 20:29:51 UTC
A patch was committed as:

http://hg.netbeans.org/core-main/rev/47cfe16efad5

This allows setting sample urls for all JdbcUrls instead for just three special cases. In this case postgresql sample was added.
Comment 5 Quality Engineering 2015-02-26 04:33:20 UTC
Integrated into 'main-silver', will be available in build *201502260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/47cfe16efad5
User: Matthias Blaesing <matthias42@netbeans.org>
Log: #149489: Allow specifying sample url, username, password for JdbcUrl
Comment 6 matthias42 2015-03-01 17:47:42 UTC
*** Bug 223502 has been marked as a duplicate of this bug. ***
Comment 7 Quality Engineering 2015-09-26 12:57:55 UTC
Integrated into 'main-silver', will be available in build *201509261150* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c90cf16ddd0b
User: Matthias Blaesing <matthias42@netbeans.org>
Log: #149489: Fix regression: user and password parameters supplied in AddConnectionWizard were ignored