https://bz.apache.org/bugzilla/show_bug.cgi?id=69363
Bug ID: 69363
Summary: WebdavServlet#parseProperties() incorrectly calculates
href
Product: Tomcat 9
Version: 9.0.95
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: -----
WebdavServlet overrides both getRelativePath() and getPathPrefix() to remount
th entire application. If you derive a new servlet from that and reinstantiate
the behavior of the DefautServlet this line
https://github.com/apache/tomcat/blob/142c45a4271e1fd8d400196a883fb560ebded110/java/org/apache/catalina/servlets/WebdavServlet.java#L1851
will break it and return invalid paths in multi-status responses. I bet this is
an oversight. The fix is trivial:
> - String href = req.getContextPath() + req.getServletPath();
> + String href = getPathPrefix(req);
which I can apply if no one objects.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]