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 81287 - undeploying '/' or /manager' should be disallowed
Summary: undeploying '/' or /manager' should be disallowed
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Sherold Dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-27 21:51 UTC by Rich Unger
Modified: 2006-07-28 17:31 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 Rich Unger 2006-07-27 21:51:47 UTC
If you undeploy / or /manager then you lose the ability to deploy any
application at all. The only workaround is to delete the tomcat directory out of
the NB userdir. NB should be smart enough to not allow the user to undeploy
these web applications (or at least provide a warning to the user with
instructions on how to fix it.)
Comment 1 Sherold Dev 2006-07-28 10:08:32 UTC
It seems that this is a new feature of the Tomcat Manager application, this was
not possible in the older releases. I agree that it should not be allowed to
undeploy the /manager context, however I do not see any harm in allowing to
undeploy the ROOT context.

TM -> 5.5
Comment 2 Sherold Dev 2006-07-28 14:11:53 UTC
F.

Checking in src/org/netbeans/modules/tomcat5/Bundle.properties;
/cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/Bundle.properties,v  <--
 Bundle.properties
new revision: 1.26.10.3.2.6; previous revision: 1.26.10.3.2.5
done
Checking in src/org/netbeans/modules/tomcat5/TomcatManager.java;
/cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/TomcatManager.java,v 
<--  TomcatManager.java
new revision: 1.76.6.2.2.6; previous revision: 1.76.6.2.2.5
done
Checking in src/org/netbeans/modules/tomcat5/nodes/actions/UndeployAction.java;
/cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/nodes/actions/UndeployAction.java,v
 <--  UndeployAction.java
new revision: 1.2.140.2; previous revision: 1.2.140.1
done
Comment 3 Rich Unger 2006-07-28 17:31:20 UTC
Sweet.  I didn't realize it was already done.  Don't you love when that happens? :)