https://issues.apache.org/bugzilla/show_bug.cgi?id=46262

           Summary: Undeploying context with %2F in it does not work
           Product: Tomcat 6
           Version: 6.0.18
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: [EMAIL PROTECTED]


Undeploying context with %2F in it does not work

This is related to the situation in bug #46261

If you have a context on disk named:

product%2Fcustomername.xml

If you try to undeploy it,you will get this error:

w3m http://localhost:8180/tomcat-manager/undeploy?path=/product/customername

FAIL - Context /product/clustername is defined in server.xml and may not be
undeployed

The error is incorrect.  The context is not defined in server.xml, it's just
that the:

Context context = (Context) host.findChild(path);

Check passes, and the

if (!isDeployed(path)) {

check fails (in ManagerServlet.java), which normally would imply the context
must be deployed in the server.xml, however in this case the isDeployed lookup
is just not working correctly for contexts with %2F in them.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to