Hi,
We've a problem with the 7.0.59 release:
request.getServletContext.getContext("/") now return null.
It was not the case with the 7.0.57 release.
How to test:
------------
1/ File "test.jsp" with:
<html>
<body>
<h2>Hello World!</h2>
<%
ServletContext contexte = request.getServletContext().getContext("/");
String result;
if (contexte == null) {
result = "KO";
} else {
result = "OK";
}
%>
<h1>Result : <%=result %><h1/>
</body>
</html>
2/ Deploy to tomcat webapps directory
3/ Open http://localhost:8080/test.jsp
With 7.0.57 : OK
With 7.0.59 : KO
It seems that the root cause is
http://issues.apache.org/bugzilla/show_bug.cgi?id=57216 :
57216: Improve handling of invalid context paths. A context path should either
be an empty string or start with a '/' and do not end with a '/'. Invalid
context path are automatically corrected and a warning is logged. The null and
"/" values are now correctly changed to "". (markt/kkolinko)
Thanks
Didier Kazmierczak
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]