-
Notifications
You must be signed in to change notification settings - Fork 652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException using sniMapping with H2 + HTTP11 #3473
Comments
It also reproduces by modifying the test here by adding the H2 protocol. What I've noticed is that when the Channel is registered in AbstractChannelMetricsHandler, the SslHandler is null... so then in MicrometerChannelMetricsHandler/TlsMetricsHandler, HandshakeFuture is done with sslHandler, which is null... I hope this can help you. |
- The server preface will be sent after receiving SniCompletionEvent - TLS handshake metrics will be registered after receiving SniCompletionEvent Fixes #3473
@hamadodene #3484 should be fixing the issue. If you are able to give it a try, it will be great! Thanks a lot for the description and the reproducible example! |
@violetagg
But we're having trouble getting it to work. The server’s response always lacks the OCSP check. Do you have any ideas? You can also test on the nullpointer-micrometer branch of our repo: We've already integrated your fix. Thanks in advance |
In the end, we resolved the OCSP issue. The method we were using to verify the OCSP response was incorrect. In fact, it worked with OpenSSL but not with our code. See https://github.com/NiccoMlt/demo-reverse-proxy/tree/nullpointer-micrometer-netty-client Thanks a lot for your help |
upgrades Reactor Netty to 1.1.24 * see reactor/reactor-netty#3473 * see reactor/reactor-netty#3475
upgrades Reactor Netty to 1.1.24 * see reactor/reactor-netty#3473 * see reactor/reactor-netty#3475
upgrades Reactor Netty to 1.1.24 * see reactor/reactor-netty#3473 * see reactor/reactor-netty#3475
We are trying to configure the Reactor Netty HTTP server with H2 and HTTP11, also using sniMapping. However, we are encountering a NullPointerException (NPE).
We have reproduced the problem at https://github.com/NiccoMlt/demo-reverse-proxy/tree/nullpointer-micrometer.
Our use case requires us to provide a different certificate based on the domain. Therefore, we thought to use sniMapping.
However, by enabling both H2 + HTTP11 on the server side and making requests with an HTTP11 or H2 client, we encounter the following NPE:
If we instead configure the server only for H2 and make the request in H2, we get the following error:
In the repository, you will find the reproducible example.
The text was updated successfully, but these errors were encountered: