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 f29ee4af0c Fix back-port. 10.1.x uses a 500 response rather than 400.
f29ee4af0c is described below

commit f29ee4af0c75e3974e0b83d9f52d36b574e6bd65
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Jun 5 15:48:29 2025 +0100

    Fix back-port. 10.1.x uses a 500 response rather than 400.
---
 test/org/apache/catalina/valves/TestParameterLimitValve.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/test/org/apache/catalina/valves/TestParameterLimitValve.java 
b/test/org/apache/catalina/valves/TestParameterLimitValve.java
index 04cb44a41c..4b1bc05c92 100644
--- a/test/org/apache/catalina/valves/TestParameterLimitValve.java
+++ b/test/org/apache/catalina/valves/TestParameterLimitValve.java
@@ -504,8 +504,7 @@ public class TestParameterLimitValve extends TomcatBaseTest 
{
         if (okExpected) {
             Assert.assertEquals(HttpServletResponse.SC_OK, rc);
         } else {
-            Assert.assertTrue(Integer.toString(rc),
-                    rc == HttpServletResponse.SC_BAD_REQUEST || rc == 
HttpServletResponse.SC_REQUEST_ENTITY_TOO_LARGE);
+            Assert.assertTrue(Integer.toString(rc), rc == 
HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
         }
     }
 


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

Reply via email to