Description
In r1180428, the code that fixed MTOMCAT-54 was removed, so inside a webapp that is deployed at "/", request.getContextPath() will return "/" when it should return "".
The bug is that, in general, trailing slashes on the path variable should be removed (it's not really a special case for "/", though it causes the worst effects in that case)
See this link for the rules for how the contextPath should look: http://tomcat.apache.org/tomcat-7.0-doc/servletapi/javax/servlet/http/HttpServletRequest.html#getContextPath()
Attachments
Issue Links
- duplicates
-
MTOMCAT-141 Context root "/" not working for Tomcat 7 Run
- Closed