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 100117

Summary: DB connection is added even if the DB URL is wrong
Product: db Reporter: Martin Schovanek <mschovanek>
Component: CodeAssignee: Andrei Badea <abadea>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Martin Schovanek 2007-04-05 15:35:39 UTC
[#200704031800, jdk1.5.0, Jaytox driver]

to reproduce:
-------------
1) add Jaytox driver
2) connect using db url like:
jdbc:jaytox:file///Users.../file.xml
NOTE: IDE throws 'Unable to add connection, null' error message and the
connection is not added.
3) change the db url to:
jdbc:jaytox://Users.../file.xml
ERROR1: IDE throws 'Unable to add connection, null' error message but the
connection is added.
3) change the db url to correct:
jdbc:jaytox:///Users.../file.xml
ERROR2: IDE throws 'Unable to add connection, connection already exist' error
message but the db url of previous connection differs.
Comment 1 Andrei Badea 2007-04-19 10:59:52 UTC
Fixed.

Checking in src/org/netbeans/modules/db/explorer/DatabaseConnection.java;
/cvs/db/src/org/netbeans/modules/db/explorer/DatabaseConnection.java,v  <-- 
DatabaseConnection.java
new revision: 1.49; previous revision: 1.48
done