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 82423 - User can create invalid elements
Summary: User can create invalid elements
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: bhate
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-10 22:22 UTC by Ivan Sidorkin
Modified: 2006-09-06 14:16 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 Ivan Sidorkin 2006-08-10 22:22:49 UTC
Build 060806_1
Java 1.6.0-beta2

- create Java Application
- create new XML Schema
- in Schema view select Elements
- in context menu for Elements select Add Element...
- type 'a a' at the Name field

OK button enabled, so user can create element with invalid name.
the same for Complex Type, Simple Type, Attributes
Comment 1 bhate 2006-08-16 00:11:42 UTC
We will check for valid NCName.
this is done when user creates new element or changes its name from property
sheet or tree view. The refactor rename does not restrict NCNames. Will create bug.
Comment 2 Ivan Sidorkin 2006-09-06 14:16:17 UTC
verified in 060905