You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2022/11/11 11:30:14 UTC

[tomcat] branch 10.1.x updated: Fix default implementation of isTrailerFieldsReady()

This is an automated email from the ASF dual-hosted git repository.

markt 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 afe2526485 Fix default implementation of isTrailerFieldsReady()
afe2526485 is described below

commit afe25264854195a59e05a110514b2f657a32089c
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Nov 11 11:28:05 2022 +0000

    Fix default implementation of isTrailerFieldsReady()
---
 java/jakarta/servlet/http/HttpServletRequest.java |  2 +-
 webapps/docs/changelog.xml                        | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/java/jakarta/servlet/http/HttpServletRequest.java b/java/jakarta/servlet/http/HttpServletRequest.java
index b98ee5b8e5..20c15ca6d7 100644
--- a/java/jakarta/servlet/http/HttpServletRequest.java
+++ b/java/jakarta/servlet/http/HttpServletRequest.java
@@ -607,6 +607,6 @@ public interface HttpServletRequest extends ServletRequest {
      * @since Servlet 4.0
      */
     public default boolean isTrailerFieldsReady() {
-        return false;
+        return true;
     }
 }
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 41bb7e3547..959431487e 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -105,6 +105,17 @@
   issues do not "pop up" wrt. others).
 -->
 <section name="Tomcat 10.1.3 (markt)" rtext="in development">
+  <subsection name="Catalina">
+    <changelog>
+      <fix>
+        Correct the default implementation of
+        <code>HttpServletRequest.isTrailerFieldsReady()</code> to return
+        <code>true</code> so it is consistent with the default implementation of
+        <code>HttpServletRequest.getTrailerFields()</code> and with the Servlet
+        API provided by the Jakarta EE project. (markt)
+      </fix>
+    </changelog>
+  </subsection>
 </section>
 <section name="Tomcat 10.1.2 (markt)" rtext="release in progress">
   <subsection name="Catalina">


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org