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 14496 - JSP and HTML name property editor allows to set an invalid name.
Summary: JSP and HTML name property editor allows to set an invalid name.
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-08-16 17:20 UTC by Marek Fukala
Modified: 2008-12-23 11:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The exception (5.18 KB, text/plain)
2001-09-12 16:33 UTC, Petr Jiricka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Fukala 2001-08-16 17:20:31 UTC
[pilsen fcs rc4]
How to reproduce:
1) create a JSP or HTML
2) show its properties
3) click to elipsis in name property
4) enter name to more than one line (hello \n ddd \n ...)
5) save it
6) execute it - a warning dialog appears saying: it is impossible to execute the
object.
Comment 1 Petr Jiricka 2001-09-12 16:31:46 UTC
Now I am getting different behavior: file can not be renamed, which 
is indicated by an exception which appears in a dialog box (attached).
Assigning to openide, as this behavior is common to all objects (e.g. 
a txt file), not just JSPs and HTMLs.
Comment 2 Petr Jiricka 2001-09-12 16:33:52 UTC
Created attachment 2522 [details]
The exception
Comment 3 _ ttran 2001-11-06 08:07:20 UTC
special property editor for 'name' which does not allow \n \t \r,...?
Comment 4 David Strupl 2001-11-09 16:48:31 UTC
Should be fixed in trunk now (PropertyPanel 1.79). The user should be
notified accordingly.
Comment 5 Marian Mirilovic 2001-11-13 10:42:39 UTC
Exception doesn't arise now, but user isn't infomed accordingly, in my
opinion.
If you try to rename some java file and you type "xx xx" as the name,
after pushing OK button nothing happends and Property Editor is still
opened.

Is this behaviour as designed, David ?
Comment 6 David Strupl 2001-11-13 11:23:38 UTC
No it is not. But it does not behave that way in dev build. After
renaming the java file to "xxx xx" the user is notified with
information that the name cannot be changed.
Comment 7 Marian Mirilovic 2001-11-16 13:10:42 UTC
verified in [nb_dev](20011116)

and for rename problems I have opened new issue 17772
Comment 8 Quality Engineering 2003-07-01 16:19:50 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.