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 262834 - [82cat] No validation present when naming database connections
Summary: [82cat] No validation present when naming database connections
Status: NEW
Alias: None
Product: db
Classification: Unclassified
Component: DB schema (show other bugs)
Version: 8.2
Hardware: PC Mac OS X
: P4 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-16 16:39 UTC by brettryan
Modified: 2016-07-16 16:39 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 brettryan 2016-07-16 16:39:29 UTC
Database names are not validated when entering a name either through the rename function or through the property editor.

Steps to Reproduce
------------------

 1. Open the Services tab and expand Databases.
 2. Right click the default jdbc:derby sample database and invoke "Rename..."
 3. Rename to a single space and click "Ok"
 4. Create new Java DB database (right click Java DB > Create Database...)
 5. Rename new database to a single space and click "Ok".


Expected Result
---------------

Rename dialog should error on either of the following or the Ok button should be disabled with a warning as to why.

 - Invalid name
 - Name already exists


Actual Result
-------------

Database name is accepted as a single space at #3, if one renames again to a nothing the connection disappears altogether.