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 2008/11/21 17:39:41 UTC
DO NOT REPLY [Bug 46262] New: Undeploying context with %2F in it
does not work
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: joe@k12s.phast.umass.edu
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46262] Undeploying context with %2F in it does not
work
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46262
--- Comment #1 from Joe Kislo <jo...@k12s.phast.umass.edu> 2008-11-21 08:43:01 PST ---
I do not have a patch for this issue, I work around this issue by doing:
w3m
http://localhost:8180/tomcat-manager/undeploy?path=/product%252Fcustomername
instead, which works. For this to work, you would have needed to apply the
patch from bug #46261
Although I am fine with this work around, this does highlight that there is
some inconsistency in the internal representation of context URLs in tomcat.
This workarond and the patch in bug #46261 could be eliminated if somebody
could standardize how the urls should be stored in the various lookup tables in
tomcat. Unfortunately I am not equipped to say whether the URLs should be
stored as:
/product/customername
/product%2Fcustomername
%2Fproduct%2Fcustomername
Which I believe are the three things I've seen being used in the tomcat code so
far
--
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46262] Undeploying context with %2F in it does not
work
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46262
--- Comment #2 from Mark Thomas <ma...@apache.org> 2008-11-21 08:46:23 PST ---
The correct way to do this in 6.0.18 is to use the # character rather than %2F.
%2F should be interpreted literally.
--
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46262] Undeploying context with %2F in it does not
work
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46262
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #3 from Mark Thomas <ma...@apache.org> 2008-12-28 15:59:35 PST ---
The fix for 46261 also addresses this bug so I am marking this as a duplicate.
*** This bug has been marked as a duplicate of bug 46261 ***
--
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org