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 2014/10/28 02:03:32 UTC
[Bug 57155] Allow Context without real docbase in embedded Tomcat
https://issues.apache.org/bugzilla/show_bug.cgi?id=57155
Konstantin Kolinko <kn...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
--- Comment #1 from Konstantin Kolinko <kn...@gmail.com> ---
I think that docBase that is equal to the empty string can be treated specially
as this "No doc base" case. I mean that in this case one needs to configure the
resources (org.apache.catalina.webresources.StandardRoot) so that no files are
served.
I think that now there is a risk that somebody will be unwillingly serving
files from appbase if one specifies <Context docBase=""/> . If anybody really
wants to serve files from appbase directory, one can use "." or an absolute
path.
Alternatively, add one-argument method to Tomcat class as
public Context addContext(String contextPath)
and perform all configuration of StandardRoot programmatically. In this case we
can avoid special processing of docBase="".
--
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