Jim Ma created CXF-8668:
---------------------------
Summary: Set SniHostCheck to false for SSLNettyClientTest
Key: CXF-8668
URL: https://issues.apache.org/jira/browse/CXF-8668
Project: CXF
Issue Type: Task
Components: Transports
Reporter: Jim Ma
After Jetty is upgraded to 11.x, the SniHostCheck is actually enabled after
this change : [https://github.com/eclipse/jetty.project/pull/6078.]
The request ip address is 127.0.0.1 and there isn't in the allowed adress list,
hence the SSLNettyClientTest fails:
{code:java}
[INFO] Running
org.apache.cxf.transport.http.netty.client.integration.SSLNettyClientTest
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.38 s
<<< FAILURE! - in
org.apache.cxf.transport.http.netty.client.integration.SSLNettyClientTest
[ERROR]
org.apache.cxf.transport.http.netty.client.integration.SSLNettyClientTest.testInvocation
Time elapsed: 0.482 s <<< ERROR!
jakarta.xml.ws.WebServiceException: Could not send Message.
at
org.apache.cxf.transport.http.netty.client.integration.SSLNettyClientTest.testInvocation(SSLNettyClientTest.java:103)
Caused by: org.apache.cxf.transport.http.HTTPException: HTTP response '400:
Invalid SNI' when communicating with
https://localhost:36101/SoapContext/SoapPort
at
org.apache.cxf.transport.http.netty.client.integration.SSLNettyClientTest.testInvocation(SSLNettyClientTest.java:103){code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)