On 2024/11/13 12:33:20 Mark Thomas wrote:
> On 13/11/2024 11:10, micha...@apache.org wrote:
> > This is an automated email from the ASF dual-hosted git repository.
> > 
> > michaelo pushed a commit to branch main
> > in repository https://gitbox.apache.org/repos/asf/tomcat.git
> > 
> > 
> > The following commit(s) were added to refs/heads/main by this push:
> >       new f5601ff240 Add option to serve resources from subpath only with 
> > WebDAV Servlet
> > f5601ff240 is described below
> > 
> > commit f5601ff240e2c7f8cb98fe79e8e30f53b731edfd
> > Author: Michael Osipov <micha...@apache.org>
> > AuthorDate: Wed Nov 13 11:48:00 2024 +0100
> > 
> >      Add option to serve resources from subpath only with WebDAV Servlet
> 
> What is the use case for this?

Simple. Serving a subset of mounted resources just like mod_dav (replacement) 
would w/o exposing the entire webapp resources, e.g.:
        <Resources>
                <PostResources base="/foo"
                        
className="org.apache.catalina.webresources.DirResourceSet"
                        webAppMount="/dav" readOnly="true" />
        </Resources>
        <servlet-mapping>
                <servlet-name>webdav</servlet-name>
                <url-pattern>/dav/*</url-pattern>
        </servlet-mapping>

Basically the same as DefaultServlet, but with DAV capabilites.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to