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 - Bad characters are accepted by the new project wizard
Summary: Bad characters are accepted by the new project wizard
Status: RESOLVED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
: 68317 130418 168241 (view as bug list)
Depends on: 201848
Blocks:
  Show dependency tree
 
Reported: 2008-03-19 18:13 UTC by _ potingwu
Modified: 2015-02-04 03:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exceptions when filename is foo" after clicking Finish button (2.28 KB, text/plain)
2008-03-19 18:18 UTC, _ potingwu
Details
Exceptions when filename is " (immediately seen) (5.54 KB, text/plain)
2008-03-19 18:19 UTC, _ potingwu
Details

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