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 218964

Summary: Invalid module name allowed
Product: apisupport Reporter: mienamoo
Component: ProjectAssignee: Milos Kleint <mkleint>
Status: VERIFIED FIXED    
Severity: normal CC: tusharvjoshi
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description mienamoo 2012-09-25 11:15:52 UTC
NetBeans IDE 7.3 Beta (Build 201209232010)
JDK 7u7 64-bit

According to the sanity test [1], the New Module wizard should not allow invalid project names. However, the project names below were allowed when the wizard is first executed (allowed to go to the next page). An error was only displayed on the last page when the folder could not be created. Going back and trying the same name does trigger the validation correctly, so there is something interesting that happens in the state in the wizard.

}{P:}><}[\][\,'9-09!&@(*&)(!&#
{!}@L!<@"<{$!(*#@^*!&@^)!$

[1] http://wiki.netbeans.org/TS_72_Apisupport_Sanity#Test_suite:_Module_Project_Wizard
Comment 1 mienamoo 2012-09-25 11:30:31 UTC
Nasty side-effect: The invalid name is remember as the project location when running the wizard again.
Comment 2 Milos Kleint 2012-10-03 11:47:40 UTC
*** Bug 219173 has been marked as a duplicate of this bug. ***
Comment 3 Milos Kleint 2012-10-03 14:59:46 UTC
http://hg.netbeans.org/core-main/rev/84729e6cc0ed

apply the same project name pattern check as in maven support
Comment 4 Quality Engineering 2012-10-07 02:00:19 UTC
Integrated into 'main-golden', will be available in build *201210070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/84729e6cc0ed
User: Milos Kleint <mkleint@netbeans.org>
Log: #218964 validation of project name entered in wizard
Comment 5 mienamoo 2012-10-08 07:42:16 UTC
Verified with build 201210070002.

This implementation is so much better, since the validation happens as you type instead of only when clicking Next. Thanks! :D