Skip to content
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

[4.x] Tls.equals can throw a NPE if alorithm contstraints is null #8569

Closed
tomas-langer opened this issue Mar 27, 2024 · 0 comments · Fixed by #8570
Closed

[4.x] Tls.equals can throw a NPE if alorithm contstraints is null #8569

tomas-langer opened this issue Mar 27, 2024 · 0 comments · Fixed by #8570
Assignees
Labels
4.x Version 4.x bug Something isn't working P1 security
Milestone

Comments

@tomas-langer
Copy link
Member

see title

..................
Caused by: java.lang.NullPointerException: Cannot invoke "java.security.AlgorithmConstraints.equals(Object)" because the return value of "javax.net.ssl.SSLParameters.getAlgorithmConstraints()" is null
        at io.helidon.common.tls.Tls.equals(Tls.java:290)
        at io.helidon.common.tls.Tls.equals(Tls.java:168)
        at java.base/java.util.Objects.equals(Objects.java:64)
        at io.helidon.webclient.api.ConnectionKey.equals(ConnectionKey.java:36)
        at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1721)
        at io.helidon.webclient.http1.Http1ConnectionCache.keepAliveConnection(Http1ConnectionCache.java:130)
        at io.helidon.webclient.http1.Http1ConnectionCache.connection(Http1ConnectionCache.java:77)
        at io.helidon.webclient.http1.Http1CallChainBase.obtainConnection(Http1CallChainBase.java:296)
        at io.helidon.webclient.http1.Http1CallChainBase.proceed(Http1CallChainBase.java:137)
        at io.helidon.webclient.api.ClientRequestBase.invokeServices(ClientRequestBase.java:395)
        at io.helidon.webclient.http1.Http1ClientRequestImpl.invokeWithServices(Http1ClientRequestImpl.java:205)
        at io.helidon.webclient.http1.Http1ClientRequestImpl.doOutputStream(Http1ClientRequestImpl.java:126)
        at io.helidon.webclient.http1.Http1ClientRequestImpl.doOutputStream(Http1ClientRequestImpl.java:37)
        at io.helidon.webclient.api.ClientRequestBase.outputStream(ClientRequestBase.java:273)
        at io.helidon.webclient.api.HttpClientRequest.doOutputStream(HttpClientRequest.java:84)
        at io.helidon.webclient.api.ClientRequestBase.outputStream(ClientRequestBase.java:273)
        at io.helidon.jersey.connector.HelidonConnector.apply(HelidonConnector.java:255)
        at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:300)
        ... 70 more
@tomas-langer tomas-langer added bug Something isn't working security P1 4.x Version 4.x labels Mar 27, 2024
@tomas-langer tomas-langer added this to the 4.0.7 milestone Mar 27, 2024
@tomas-langer tomas-langer self-assigned this Mar 27, 2024
@m0mus m0mus added this to Backlog Aug 12, 2024
@m0mus m0mus moved this to Closed in Backlog Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x Version 4.x bug Something isn't working P1 security
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant