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 63558 - Servlet - invalid URL Pattern check
Summary: Servlet - invalid URL Pattern check
Status: RESOLVED INVALID
Alias: None
Product: javaee
Classification: Unclassified
Component: DD Editor (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-02 10:21 UTC by zikmund
Modified: 2008-12-23 23:51 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 zikmund 2005-09-02 10:21:56 UTC
Build 20050902-0547

1) Have a WebApp with a servlet
2) Open DD editor | Servlets | servlet
3) Edit servlet's URL pattern to empty
4) ERROR:
No error message, although empty URL pattern is invalid.
Comment 1 zikmund 2005-09-02 10:40:31 UTC
BTW: '*name' is not according to the JavaServlet specification as well. If
asteriks starts URL pattern, it must be followed by dot and something (i.e. '*'
and '*.' are not allowed as well).
Comment 2 zikmund 2005-09-02 12:02:13 UTC
Empty URL pattern is OK - no servlet-mapping will be generated.
'*name' invalid patterns etc. are still an issue. They should be fixed in new
Servlet/Filter wizzard as well.
Comment 3 Jayashri Visvanathan 2008-12-23 23:51:09 UTC
If you switch to XML view, you can see that an default url pattern gets generated which is why you don't see a error
message.