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 - DB connection is added even if the DB URL is wrong
Summary: DB connection is added even if the DB URL is wrong
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-05 15:35 UTC by Martin Schovanek
Modified: 2007-04-19 10:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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