This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 3d523650ff Bug 66618: add longDate attribute to XML in directory
listing
3d523650ff is described below
commit 3d523650ff6a1f8f99964915f4144d299621b09c
Author: alexkachanov <[email protected]>
AuthorDate: Sun May 28 17:17:40 2023 +0900
Bug 66618: add longDate attribute to XML in directory listing
---
java/org/apache/catalina/servlets/DefaultServlet.java | 3 +++
webapps/docs/changelog.xml | 5 +++++
2 files changed, 8 insertions(+)
diff --git a/java/org/apache/catalina/servlets/DefaultServlet.java
b/java/org/apache/catalina/servlets/DefaultServlet.java
index 27d0dd1df7..891c68aeb4 100644
--- a/java/org/apache/catalina/servlets/DefaultServlet.java
+++ b/java/org/apache/catalina/servlets/DefaultServlet.java
@@ -1737,6 +1737,9 @@ public class DefaultServlet extends HttpServlet {
sb.append(" date='")
.append(childResource.getLastModifiedHttp())
.append('\'');
+ sb.append(" longDate='")
+ .append(childResource.getLastModified())
+ .append('\'');
sb.append('>');
sb.append(Escape.htmlElementContent(entry));
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 71fdb65228..d4a7efe273 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -128,6 +128,11 @@
file names in directory listings when using XML output. Based on pull
request <pr>621</pr> by Alex Kachanov. (markt)
</fix>
+ <add>
+ <bug>66618</bug>: Add a numeric last modified field to the XML directory
+ listings produced by the default servlet to enable sorting in the XSLT.
+ Pull request <pr>622</pr> by Alex Kachanov. (markt)
+ </add>
</changelog>
</subsection>
<subsection name="Coyote">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]