Hi,

I am trying (and very much failing) to set up a test for the http2 client
proxy addition, the SSL-enabled path (SOLR-16859).

While trying to use JettySolrRunner's proxy (SocketProxy) I realized that
it doesn't seem to actually work with SSL enabled.
looking for other usecases in the Solr test pool I noticed all of the
existing proxy tests have the `@SuppressSSL(bugUrl = "
https://issues.apache.org/jira/browse/SOLR-5776";)` annotation. SOLR-5776
has been fixed for a good while now and there is some indication that the
annotation should be removed, so I tried it on one of these other proxy
tests (HttpPartitionOnCommitTest) and sure enough it failed with the same
exception I was seeing. "No available authentication scheme" [0]

I think the proxy impl is broken with SSL enabled, or somehow missing some
important setting. Could someone with more knowledge in the area take a
look?
You can use my PR for verification, I have added a seed that enables SSL
https://github.com/apache/solr/pull/1779/files#diff-2711752067ddc6eebaff3bb06836efdc0bbe07b9a7f780f35c2eb88b429c565cR70
the test passes on non-SSL settings.

best,
alex

[0]
  2> 2659 INFO  (SocketProxy-Acceptor-64194) [] o.a.s.c.s.c.SocketProxy
accepted Socket[addr=/127.0.0.1,port=64200,localport=64194],
receiveBufferSize: 408300
  2> 2662 INFO  (SocketProxy-Acceptor-64194) [] o.a.s.c.s.c.SocketProxy
proxy connection Socket[addr=/127.0.0.1,port=64195,localport=64201],
receiveBufferSize=408300
  2> 2689 ERROR (SocketProxy-Request-64200:64195) []
o.a.s.c.s.c.SocketProxy No available authentication scheme
  2>           => javax.net.ssl.SSLHandshakeException: No available
authentication scheme
  2>    at
java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131)
  2> javax.net.ssl.SSLHandshakeException: No available authentication scheme
  2>    at sun.security.ssl.Alert.createSSLException(Alert.java:131) ~[?:?]
  2>    at sun.security.ssl.Alert.createSSLException(Alert.java:117) ~[?:?]
  2>    at
sun.security.ssl.TransportContext.fatal(TransportContext.java:347) ~[?:?]
  2>    at
sun.security.ssl.TransportContext.fatal(TransportContext.java:303) ~[?:?]
  2>    at
sun.security.ssl.TransportContext.fatal(TransportContext.java:294) ~[?:?]

Reply via email to