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 130554

Summary: Bad characters are accepted by the new project wizard
Product: javaee Reporter: _ potingwu <potingwu>
Component: Web ProjectAssignee: David Konecny <dkonecny>
Status: RESOLVED WORKSFORME    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 201848    
Bug Blocks:    
Attachments: Exceptions when filename is foo" after clicking Finish button
Exceptions when filename is " (immediately seen)

Description _ potingwu 2008-03-19 18:13:49 UTC
If I enter a file name with '"', '<', '>', ... the new project wizard's first panel accepts it. But then I got the
following error after clicking the Finish button:

    Cannot create folder foo" in folder ...

Besides that, if the first character is '"', '<', '>', ..., I immediately got the other exception:

    java.lang.IllegalArgumentException: Parameter file was not normalized.
Comment 1 _ potingwu 2008-03-19 18:18:18 UTC
Created attachment 58688 [details]
Exceptions when filename is foo" after clicking Finish button
Comment 2 _ potingwu 2008-03-19 18:19:20 UTC
Created attachment 58689 [details]
Exceptions when filename is " (immediately seen)
Comment 3 _ potingwu 2008-03-19 18:42:04 UTC
BTW, if the wizard can always suggest users typing a valid Java identifier name (by using
Character.isJavaIdentifierPart), then that will reduce more issue from every framework or the web core itself.

E.g., non-JavaIdentifier character will make the Context Path showing '_' replacement which is not good for development.

Maybe at least the lower panel can show some warning or suggestion mesg when the name is not Java identifier character.
Comment 4 David Konecny 2008-03-28 02:59:22 UTC
*** Issue 68317 has been marked as a duplicate of this issue. ***
Comment 5 Jiri Prox 2008-04-11 01:15:41 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 6 David Konecny 2009-07-07 23:06:26 UTC
*** Issue 168241 has been marked as a duplicate of this issue. ***
Comment 7 David Konecny 2009-09-24 02:15:02 UTC
*** Issue 130418 has been marked as a duplicate of this issue. ***
Comment 8 Quality Engineering 2015-02-04 03:29:58 UTC
Reported for 7.3.x or earlier, no new info since then -> closing as worksforme, please reopen in case you see it.