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 2026/05/28 16:03:32 UTC
(tomcat) branch 10.1.x updated: Valve now logs non-integer header values
This is an automated email from the ASF dual-hosted git repository.
markt-asf 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 0130890184 Valve now logs non-integer header values
0130890184 is described below
commit 0130890184b96ed4df2b818607f5fd230eeea506
Author: Mark Thomas <ma...@apache.org>
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 ddd00e9736..67378bd830 100644
--- a/test/org/apache/catalina/valves/TestSSLValve.java
+++ b/test/org/apache/catalina/valves/TestSSLValve.java
@@ -338,18 +338,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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org