DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=40160>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40160 Summary: Webdav Context path must be /* Product: Tomcat 5 Version: Unknown Platform: PC OS/Version: Windows XP Status: NEW Severity: enhancement Priority: P2 Component: Servlets:WebDAV AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] The context path at which the webdav servlet is run must be /*. That is, a web.xml entry like the following does not work: <servlet-mapping> <servlet-name>webdavsf</servlet-name> <url-pattern>/dav/*</url-pattern> </servlet-mapping> This is tested on 5.5.17 This is unfortunate if you want to have one WAR file containing some other servlets and a dav area with content autogenerated by the servlets. I have made patches to "webdav servlet" on SourceForge, which is derived from the apache code and has the same problem. My patches seem to fix it, and I suspect that very similar patches would fix the original version. I am not a dav expert though, and I haven't tested it on the original version, nor any locking etc. So the patches described bel There seem to be two reasons for this requirement for /* instead of, say /dav/* (1) The internal path generated for a null entry is wrong. This can be fixed by removing the following lines from getRelativePath() [in DefaultServlet]: if (result == null) result = (String) request.getAttribute( Globals.INCLUDE_SERVLET_PATH_ATTR); and if (result == null) { result = request.getServletPath(); } I don't see how these lines could ever help in the WebDav context, though I am not an expert in dav, and they may be important in some other use of DefaultServlet. The second required modification that I posted for "webdav servlet" on sourceforge has already been fixed (or something equivalent) in 5.5.17., so you should be able to ignore that. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]