This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new d27461e1a3 Instant is immutable
d27461e1a3 is described below
commit d27461e1a3724f6b4e9522a48527ee17c20d26ab
Author: remm <[email protected]>
AuthorDate: Mon Jan 19 22:43:02 2026 +0100
Instant is immutable
As a result, the end of the request was always the beginning.
BZ69932
---
java/org/apache/catalina/valves/AbstractAccessLogValve.java | 2 +-
webapps/docs/changelog.xml | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/valves/AbstractAccessLogValve.java
b/java/org/apache/catalina/valves/AbstractAccessLogValve.java
index 1552d5b444..5b6c6b1ba4 100644
--- a/java/org/apache/catalina/valves/AbstractAccessLogValve.java
+++ b/java/org/apache/catalina/valves/AbstractAccessLogValve.java
@@ -1107,7 +1107,7 @@ public abstract class AbstractAccessLogValve extends
ValveBase implements Access
Instant requestStartInstant =
Instant.from(request.getCoyoteRequest().getStartInstant());
long frac;
if (!usesBegin) {
- requestStartInstant.plusNanos(time);
+ requestStartInstant = requestStartInstant.plusNanos(time);
}
/*
* Implementation note: This is deliberately not implemented using
switch. If a switch is used the compiler
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 3d8c885f9c..500dcfa007 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -136,6 +136,10 @@
Ensure URL encoding errors in the Rewrite Valve trigger an exception
rather than silently using a replacement character. (markt)
</fix>
+ <fix>
+ <bug>69932</bug>: Fix request end access log pattern regression,
+ which would log the start time of the request instead. (remm)
+ </fix>
</changelog>
</subsection>
<subsection name="Coyote">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]