Hello,

I'm using the Jackrabbit webdav servlet, and I'm confused about the pathPrefix parameter in the constructor for AbstractLocatorFactory.

Suppose that the context path is http://example.org/foo and the webdav servlet is mapped to /dav/*. My understanding is that the path prefix should be "/dav", so that the resource handle for http://example.org/foo/dav/bar is "/bar" (because I want the servlet path to be removed from the resource handle).

If I use this configuration, WebdavRequestImpl.getHrefLocator("http://example.com/foo/bar";) will return a locator for http://example.com/foo/dav/bar, because it only checks that the resource path starts with "foo/", and passes prefix="http://example.com/foo"; href="/bar" to the locator factory.

Among other consequences, a COPY with destination http://example.com/foo/bar will succeed, as if it were a copy to http://example.com/foo/dav/bar

Is this behavior actually intended?


Best Regards

Javier

Reply via email to