You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/01/30 23:18:51 UTC

DO NOT REPLY [Bug 6137] New: - Context Administration removes /ROOT instead of the specified context at first remove request

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6137>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6137

Context Administration removes /ROOT instead of the specified context at first remove request

           Summary: Context Administration removes /ROOT instead of the
                    specified context at first remove request
           Product: Tomcat 3
           Version: 3.3 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Webapps
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: johannes.lehtinen@iki.fi


When using the Tomcat 3.3 Context Administration web interface to remove a
context by name (say, context /test) the context /ROOT gets removed instead of
the specified one. The following is logged:

2002-01-30 23:48:18 - ContextManager: Removing context DEFAULT:/ROOT
2002-01-30 23:48:18 - Ctx() : Remove mapping

On second subsequent request to remove the same context it actually removes it
giving out the following

2002-01-30 23:48:28 - ContextManager: Removing context DEFAULT:/test
2002-01-30 23:48:28 - Ctx(/test) : Remove mapping /test
2002-01-30 23:48:28 - Ctx(/test) : Remove mapping /test/test

And in the servlet log the expected: test: test: destroy

On further requests to add or remove the context it works as expected. However,
if the context /ROOT is added then it gets removed again when trying to remove
some other context. The context removing via the context list (View All
Contexts) works as expected removing the specified context.

I have seen this behaviour on Tomcat 3.3a and Tomcat 3.3.1-dev (2002-01-30)
(directly out of package, just modifying conf/apps-admin.xml to make admin
webapp trusted). The JVM is Sun JDK 1.3.1_02 on Linux.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>