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 2015/03/18 05:49:24 UTC
[Bug 57723] New: An incomplete fix for invalid context paths in
StandardContext.java / JNDI fails
https://bz.apache.org/bugzilla/show_bug.cgi?id=57723
Bug ID: 57723
Summary: An incomplete fix for invalid context paths in
StandardContext.java / JNDI fails
Product: Tomcat 7
Version: 7.0.59
Hardware: PC
Status: NEW
Severity: minor
Priority: P2
Component: Catalina
Assignee: dev@tomcat.apache.org
Reporter: ck@vx4.de
The fix for #57216 is aimed handle invalid context paths, such as "/".
When using Tomcat.addWebapp() the (wrong) name for the context is
already set in Line 534.
public Context addWebapp(Host host, String url, String path) {
return addWebapp(host, url, url, path);
}
public Context addWebapp(Host host, String url, String name, String path) {
silence(host, url);
Context ctx = createContext(host, url);
ctx.setName(name);
ctx.setPath(url);
ctx.setDocBase(path);
...
Therefore StandardContext.setPath()#2198 does not set the corrected name for
the
context.
This causes JNDI to fail, i.e. in JSPCompilationContext.getLastModified()#410
and
#421.
if(invalid) should also include setting the new corrected name.
Or fail hard - that would have made it easier to find.
Best regards,
Christian
--
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
[Bug 57723] An incomplete fix for invalid context paths in
StandardContext.java / JNDI fails
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57723
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Fixed in 7.0.x for 7.0.60 onwards.
--
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