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:31:08 UTC

[tomcat] branch 9.0.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 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 45c368cb90 Fix default implementation of isTrailerFieldsReady()
45c368cb90 is described below

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

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

diff --git a/java/javax/servlet/http/HttpServletRequest.java b/java/javax/servlet/http/HttpServletRequest.java
index d66a5080e1..6f9985302f 100644
--- a/java/javax/servlet/http/HttpServletRequest.java
+++ b/java/javax/servlet/http/HttpServletRequest.java
@@ -611,6 +611,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 14acc29493..6db84a4673 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 9.0.70 (remm)" 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 9.0.69 (remm)" 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