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 31484 - Don't allow name with \ in "New...wizard
Summary: Don't allow name with \ in "New...wizard
Status: VERIFIED DUPLICATE of bug 56805
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
: 32970 33314 38748 42558 (view as bug list)
Depends on: 32986
Blocks:
  Show dependency tree
 
Reported: 2003-02-26 12:06 UTC by Oleg Khokhlov
Modified: 2008-12-22 15:55 UTC (History)
0 users

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 Oleg Khokhlov 2003-02-26 12:06:36 UTC
Steps to reproduce:
1. Moun a web module.
2. Try to create a jsp with "\" name.
Expected result: exception "Can't create ..." and
nothing is created.
Actual result: exception and ".jsp" node is created.

S1S 5 SE 030223, JDK 1.4.0_02.
Comment 1 Jiri Rechtacek 2003-02-27 11:58:58 UTC
The problem with invalid name when a template is instantied. Not only
with jsp but with java classes too. It should be solved in 4.0.
Comment 2 Marian Mirilovic 2003-04-03 15:50:04 UTC
IllegalArgumentException rises.
Comment 3 Jiri Rechtacek 2003-04-17 10:59:08 UTC
*** Issue 32970 has been marked as a duplicate of this issue. ***
Comment 4 Lukas Hasik 2003-04-17 11:50:28 UTC
I tried it and no exception appeared. 
"\.jsp" file was created.
Creation of file with such name should be forbidden.

-it doesn't happen in all wizards.
-there should be the same approach in all "New..." wizards -> filed
enhancement 32986
Comment 5 Jiri Rechtacek 2003-04-17 15:08:51 UTC
*** Issue 32970 has been marked as a duplicate of this issue. ***
Comment 6 Jiri Rechtacek 2003-04-18 16:07:15 UTC
*** Issue 33060 has been marked as a duplicate of this issue. ***
Comment 7 Lukas Hasik 2003-04-30 13:12:33 UTC
*** Issue 33314 has been marked as a duplicate of this issue. ***
Comment 8 Jiri Rechtacek 2004-01-06 09:10:12 UTC
No changes planned to 3.6.
Comment 9 Jiri Rechtacek 2004-01-29 10:29:23 UTC
*** Issue 38748 has been marked as a duplicate of this issue. ***
Comment 10 Jiri Rechtacek 2004-01-29 10:31:01 UTC
phrased from issue 38748:
"HTML wizard "allows" creation of "<.html" file
(wrong Windows file name), which causes exception
after wizard finish.

RECOMMENDATION:
It could behave like renaming file in
"Filesystems" window where an information dialog
"cannot rename file" appears.

NOTICE:
If adding file name constraints to the wizard, it
should behave well also on unix/linux."
Comment 11 Jiri Rechtacek 2004-04-28 12:41:41 UTC
*** Issue 42558 has been marked as a duplicate of this issue. ***
Comment 12 Jiri Rechtacek 2004-10-12 15:02:32 UTC
Note: After implementation issue 49332, the wizard can throw
IOException if new file creation fails, notify user and allow an user
correct input values.
Comment 13 Jiri Rechtacek 2004-10-14 12:00:19 UTC
Resolving issue 49332 fixes this issue enough, closed as fixed.
Comment 14 Tomas Danek 2005-07-08 12:20:28 UTC
4.2 20050704 sol/sparc.

I'd like to verify this, but i can't. While I'm able in wizard to create file
"*798$%^&abcd.jsp" and "*(&@.html", something is wrong. The only possitive i
found that java class name is checked correctly. Reopening it, sorry.

Comment 15 Jiri Rechtacek 2005-07-11 09:19:47 UTC
Fixed in Java Project in NB4.0.
Problems with wrong filenames in Web Project is duplicate of issue 56805.

*** This issue has been marked as a duplicate of 56805 ***
Comment 16 Tomas Danek 2005-07-14 15:09:18 UTC
ver as duplicate