You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mi...@apache.org on 2020/04/29 09:14:24 UTC
[tomcat] branch master updated: BZ 64386: WebdavServlet does not
send "getlastmodified" property for resource collection
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push:
new 796b65b BZ 64386: WebdavServlet does not send "getlastmodified" property for resource collection
796b65b is described below
commit 796b65b7e4868e0bd14c6cf4b3bcda4eb86ba9ab
Author: Michael Osipov <mi...@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 683437c..94b0df0 100644
--- a/java/org/apache/catalina/servlets/WebdavServlet.java
+++ b/java/org/apache/catalina/servlets/WebdavServlet.java
@@ -2088,6 +2088,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 b874a3d..18f1325 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -102,6 +102,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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org