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 98542

Summary: It is possible to add Driver with existent name
Product: db Reporter: Roman Mostyka <romanmostyka>
Component: CodeAssignee: Jiri Skrivanek <jskrivanek>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 152436    

Description Roman Mostyka 2007-03-21 18:54:45 UTC
1. Rightclick "Databases->Drivers" and select "New Driver...".
2. In "New JDBC Driver" dialog click "Add...", select DB driver and click "Open".
3. Enter "DBDriver" in "Name" field and click "OK".
4. Rightclick "Databases->Drivers" and select "New Driver...".
5. In "New JDBC Driver" dialog click "Add...", select DB driver and click "Open".
6. Enter the same name "DBDriver" in "Name" field and click "OK".

Result: Doubled DB driver is added to Drivers tree.
Comment 1 David Vancouvering 2008-01-25 23:40:37 UTC
This isn't a common problem and is easy to detect and fix.  Lowering to a P4.
Comment 2 Jiri Skrivanek 2009-06-17 08:07:49 UTC
Fixed.
core-main #cef3d91b8ef5
Comment 3 Quality Engineering 2009-06-17 18:50:55 UTC
Integrated into 'main-golden', will be available in build *200906171401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/cef3d91b8ef5
User: Jiri Skrivanek <jskrivanek@netbeans.org>
Log: #98542 - Check for existing driver name.
Comment 4 Quality Engineering 2009-06-18 06:59:51 UTC
Integrated into 'main-golden', will be available in build *200906180201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/fcc3123525a8
User: Jiri Skrivanek <jskrivanek@netbeans.org>
Log: #98542 - Check only for new driver.