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 163463 - Import Wizard: weak check for Project name
Summary: Import Wizard: weak check for Project name
Status: VERIFIED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: CDC pack (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks: 162137
  Show dependency tree
 
Reported: 2009-04-23 11:06 UTC by fserges
Modified: 2009-07-27 16:32 UTC (History)
2 users (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 fserges 2009-04-23 11:06:51 UTC
Start Import Wizard for WTK or CDC TK project.
Choose correct project, press Next button.

In the panel where project name for new project should be entered you can type illegal project name:

It is possible to enter "<>"" in the project name.

P.S. Issue found during Java ME SDK 3.0 testing.
Comment 1 Denis Anisimov 2009-04-23 15:07:10 UTC
I have found an issue with IllegalArgumentException .
It is thrown because project location file was not normalized .
This fix concern to this issue with exception.

With this fix now "<>" ( and "<", etc. ) is wrong string .
But error message in this case is about already existed project folder.
This is result of strange JDK behavior ( in my case at least ).
This code :
<code>
File file = new File("<>");
file.getCanonicalPath();
</code>
doesn't throw exception and result is current working directory.
For me this is like JDK bug.
If you consider this behavior as incorrect please file a bug against JDK.
Our source code relies on JDK getCanonicalPath() method .
Comment 2 Denis Anisimov 2009-04-23 15:17:42 UTC
changeset:   128242:318733c0e3fc
user:        Denis Anisimov <ads@netbeans.org>
date:        Thu Apr 23 18:11:42 2009 +0400
summary:     Fix for IZ#163463 - Import Wizard: weak check for Project name
Comment 3 Quality Engineering 2009-04-24 07:42:21 UTC
Integrated into 'main-golden', will be available in build *200904240201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/318733c0e3fc
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for IZ#163463 - Import Wizard: weak check for Project name
Comment 4 Andrei Chistiakov 2009-07-27 16:32:55 UTC
Verified with NetBeans IDE Dev (Build 200907270201)