https://issues.apache.org/bugzilla/show_bug.cgi?id=57155

Konstantin Kolinko <knst.koli...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Konstantin Kolinko <knst.koli...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to