This is an automated email from the ASF dual-hosted git repository. michaelo pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push: new c367786 BZ 64386: WebdavServlet does not send "getlastmodified" property for resource collection c367786 is described below commit c36778635be411f9d41521fc84ad68d5d6568327 Author: Michael Osipov <micha...@apache.org> AuthorDate: Wed Apr 29 11:05:25 2020 +0200 BZ 64386: WebdavServlet does not send "getlastmodified" property for resource collection --- java/org/apache/catalina/servlets/WebdavServlet.java | 2 ++ webapps/docs/changelog.xml | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/java/org/apache/catalina/servlets/WebdavServlet.java b/java/org/apache/catalina/servlets/WebdavServlet.java index 371de11..b3c558d 100644 --- a/java/org/apache/catalina/servlets/WebdavServlet.java +++ b/java/org/apache/catalina/servlets/WebdavServlet.java @@ -2087,6 +2087,8 @@ public class WebdavServlet extends DefaultServlet { generatedXML.writeElement("D", "resourcetype", XMLWriter.NO_CONTENT); } } else { + generatedXML.writeProperty("D", "getlastmodified", + FastHttpDateFormat.formatDate(lastModified)); generatedXML.writeElement("D", "resourcetype", XMLWriter.OPENING); generatedXML.writeElement("D", "collection", XMLWriter.NO_CONTENT); generatedXML.writeElement("D", "resourcetype", XMLWriter.CLOSING); diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index 5853387..4b1a44d 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -89,6 +89,10 @@ <bug>64384</bug>: Fix multipart configuration ignoring some parameters in some cases. (schultz) </fix> + <add> + <bug>64386</bug>: WebdavServlet does not send "getlastmodified" + property for resource collections. (michaelo) + </add> </changelog> </subsection> <subsection name="Coyote"> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org