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 159420 - New Project Wizard: improve name validity control
Summary: New Project Wizard: improve name validity control
Status: VERIFIED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Andrew Korostelev
URL:
Keywords:
Depends on:
Blocks: 162137
  Show dependency tree
 
Reported: 2009-03-02 11:04 UTC by alex_pst
Modified: 2009-07-27 15:08 UTC (History)
1 user (show)

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 alex_pst 2009-03-02 11:04:30 UTC
1) Maximum project folder length should be checked that it doesn't exceed 256 symbols. But now only "Project Name"
length is checked, "Project Location" value is ignored and as a result user get's "Cannot create folder ..." error
without explanation.

2) NTFS filenames can contain any characters, including spaces, uppercase/lowercase except for the following " * : / \ ?
< > |. But only "*", "?", "|", ":" are checked and message about incorrect folder name is shown to user. There are no
error messages for other forbidden symbols just message that folder can't be created when user presses "Finish" button.
It's even possible to create project with name which contains "/" or "\" symbols.

3) Enter forbidden double quote symbol (") in the "Project Location" field - "Project Name" is not valid folder name"
error message appear. But "Project Location is not a valid path" is correct.

4) It's also possible to clean "Project Location" or enter only space symbols as location and project will be created.
Comment 1 Petr Suchomel 2009-03-16 18:04:54 UTC
Andrew, can you look at it?
Comment 2 Andrew Korostelev 2009-03-17 14:48:45 UTC
fixed in main trunk.

except 256 chars in path.
Will investigate while all NB projects do not prohibit longer paths at under Windows.

http://hg.netbeans.org/main/rev/af4c6e18fb94
Comment 3 Andrew Korostelev 2009-03-17 15:13:48 UTC
show warning if project path length is more than 255 under windows, but do not prohibit.

http://hg.netbeans.org/main/rev/adb4b35e93f4
Comment 4 Quality Engineering 2009-03-18 22:47:40 UTC
Integrated into 'main-golden', will be available in build *200903181604* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/af4c6e18fb94
User: akorostelev@netbeans.org
Log: fix #159420. Project name and path validations are updated from java project
Comment 5 Andrei Chistiakov 2009-07-27 15:07:35 UTC
Verified with NetBeans IDE Dev (Build 200907270201)