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 c07c7b03d6 Fix back-port. 10.1.x uses a 500 response rather than 400.
c07c7b03d6 is described below
commit c07c7b03d63643ba5469139c0f8ead8b04b7d453
Author: Mark Thomas <[email protected]>
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 9e4e85dc11..44beddd657 100644
--- a/test/org/apache/catalina/valves/TestParameterLimitValve.java
+++ b/test/org/apache/catalina/valves/TestParameterLimitValve.java
@@ -503,8 +503,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: [email protected]
For additional commands, e-mail: [email protected]