Hi all,
after the refactorings for the testing of the forbidden client initiated
renegotiations, these unit tests fail for me for the last tags of TC 8.5
and 9, but not for 10.1 and 11. I am using JSSE and the tests fail
consistently for all four JDK vendors I am testing against on all linux
distributions I am testing on. I saw it for Java 8 and 11. No info yet
about 17 and 21, the test runs will arrive at Java 17 later today.
Example output (no indication for a reason):
18-Jan-2024 05:20:09.593 INFO [main]
org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case
[testClientInitiatedRenegotiation]
18-Jan-2024 05:20:09.611 INFO [main]
org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
["https-jsse-nio-127.0.0.1-auto-5"]
18-Jan-2024 05:20:09.615 INFO [main]
org.apache.tomcat.util.net.AbstractEndpoint.logCertificate Connector
[https-jsse-nio-127.0.0.1-auto-5], TLS virtual host [_default_],
certificate type [UNDEFINED] configured from keystore
[/.../tomcat85_test.sles12.x86_64/test/org/apache/tomcat/util/net/localhost-rsa.jks]
using alias [tomcat] with trust store
[/.../tomcat85_test.sles12.x86_64/test/org/apache/tomcat/util/net/ca.jks]
18-Jan-2024 05:20:09.615 INFO [main]
org.apache.catalina.core.StandardService.startInternal Starting service
[Tomcat]
18-Jan-2024 05:20:09.616 INFO [main]
org.apache.catalina.core.StandardEngine.startInternal Starting Servlet
engine: [Apache Tomcat/8.5.98]
18-Jan-2024 05:20:09.684 INFO [main]
org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
["https-jsse-nio-127.0.0.1-auto-5-45059"]
18-Jan-2024 05:20:09.912 INFO [main]
org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
["https-jsse-nio-127.0.0.1-auto-5-45059"]
18-Jan-2024 05:20:09.915 INFO [main]
org.apache.catalina.core.StandardService.stopInternal Stopping service
[Tomcat]
18-Jan-2024 05:20:09.928 INFO [main]
org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
["https-jsse-nio-127.0.0.1-auto-5-45059"]
18-Jan-2024 05:20:09.943 INFO [main]
org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
["https-jsse-nio-127.0.0.1-auto-5-45059"]
------------- ---------------- ---------------
Testcase: testSimpleSsl took 7.754 sec
Testcase: testKeyPass took 1.179 sec
Testcase: testPost took 15.93 sec
Testcase: testKeyPassFile took 0.783 sec
Testcase: testClientInitiatedRenegotiation took 0.383 sec
FAILED
Renegotiation started when it should have failed
junit.framework.AssertionFailedError: Renegotiation started when it
should have failed
at
org.apache.tomcat.util.net.TestSsl.testClientInitiatedRenegotiation(TestSsl.java:250)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
I expect it is a new problem in the test after the refactoring, not a
real TLS issue.
Best regards,
Rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org