This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new 19b684367a Valve now logs non-integer header values
19b684367a is described below
commit 19b684367a42335a9056d945541d9246e6d43f03
Author: Mark Thomas <[email protected]>
AuthorDate: Thu May 28 17:03:09 2026 +0100
Valve now logs non-integer header values
---
test/org/apache/catalina/valves/TestSSLValve.java | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/test/org/apache/catalina/valves/TestSSLValve.java
b/test/org/apache/catalina/valves/TestSSLValve.java
index 9a7993c9d2..7b478ff266 100644
--- a/test/org/apache/catalina/valves/TestSSLValve.java
+++ b/test/org/apache/catalina/valves/TestSSLValve.java
@@ -350,18 +350,13 @@ public class TestSSLValve {
}
- @Test(expected = NumberFormatException.class)
public void testSslCipherUserKeySizeHeaderBadFormat() throws Exception {
setUp();
mockRequest.setHeader(valve.getSslCipherUserKeySizeHeader(),
"not-an-integer");
- try {
- valve.invoke(mockRequest, null);
- } catch (NumberFormatException e) {
- Assert.assertNull(mockRequest.getAttribute(Globals.KEY_SIZE_ATTR));
- mockRequest.setHeader(valve.getSslCipherUserKeySizeHeader(), null);
- throw e;
- }
+ valve.invoke(mockRequest, null);
+
+ Assert.assertNull(mockRequest.getAttribute(Globals.KEY_SIZE_ATTR));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]