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 33579 - Servlet mapping broken for updating changes to servlets
Summary: Servlet mapping broken for updating changes to servlets
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: -S1S-
Hardware: Sun SunOS
: P4 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-13 22:31 UTC by John Baker
Modified: 2004-09-08 19:36 UTC (History)
1 user (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 John Baker 2003-05-13 22:31:21 UTC
Using Studio 5 RC2,

To reproduce:

1) Create a servlet 
2) Rename it - > a Confirm Changes dialog opens.
3) Select the servlet and click Process All
4) Check the Servlet Mappings and Servlets properties

The mapping is not updated to reflect the name change

Also, it seems if a servlet is deleted then the
mapping
isn't deleted.

It's really annoying that this Confirm Changes
dialog opens.
Especially since it's not working.
Comment 1 _ rkubacki 2003-05-14 07:49:28 UTC
I agree that it is confusing that the URL pattern is not updated.
Perhaps we should default it to something better that string
containing class name. We refused to update because it can break other
parts of web app and it will work without modification.

Deleting works for me (both servlet and servlet-mapping is deleted).

What's annoying with the dialog?
Comment 2 _ rkubacki 2003-05-14 07:50:57 UTC
Closing as won't fix according to previous comment unless you convince
me that there is strong reason to change current behaviour. BTW:
servlet support will be significantly reworked for 4.0
Comment 3 John Baker 2003-05-14 20:02:56 UTC
The dialog is annoying since clicking the Process All button
doesn't do anything and it pops up for every servlet 
that is renamed.  Why have this dialog open if nothing is changed? 

Deleting a servlet _doesn't_ delete the mapping.

If this can't be fixed in this release, move this to the next release.
Comment 4 _ rkubacki 2003-05-15 12:41:35 UTC
> The dialog is annoying since clicking the Process All button
> doesn't do anything and it pops up for every servlet 
> that is renamed.  Why have this dialog open if nothing is changed? 

OK. So there can be servlet source that doesn't have
servlet/servlet-mapping in web.xml and triggers this dialog. This
might be a usability problem but definitely not a P2 bug. Is this your
case?

Coalescing of changes sounds like RFE to me.

> Deleting a servlet _doesn't_ delete the mapping.

cannot reproduce
Comment 5 zikmund 2004-09-08 19:36:39 UTC
Works fine in NetBeans 4.0.
Marking as Fixed.