-
Notifications
You must be signed in to change notification settings - Fork 23
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
Fixed NPE with SslMode.TUNNEL
Usage
#225
Conversation
PTAL @mirromutth @JohnNiang |
ad9fc41
to
56eb874
Compare
Planning to release version 1.1.1 once this issue is resolved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
684e95c
to
9980c67
Compare
Motivation: A NPE was identified when utilizing `SslMode.TUNNEL`. The issue arises when `ConnectionContext#isMariaDb` is invoked from `SslBridgeHandler#isTls13Enabled`, leading to an NPE due to the `ConnectionContext` not being initialized at that time. Modification: Do not invoke `ConnectionContext#isMariaDb` when it is not initialized. Result: This change addresses the NPE issue, ensuring stability when `SslMode.TUNNEL` is selected. resolves GoogleCloudPlatform/cloud-sql-jdbc-socket-factory#1828
9980c67
to
666cc3e
Compare
src/test/java/io/asyncer/r2dbc/mysql/SslTunnelIntegrationTest.java
Outdated
Show resolved
Hide resolved
src/test/java/io/asyncer/r2dbc/mysql/SslTunnelIntegrationTest.java
Outdated
Show resolved
Hide resolved
src/test/java/io/asyncer/r2dbc/mysql/SslTunnelIntegrationTest.java
Outdated
Show resolved
Hide resolved
src/test/java/io/asyncer/r2dbc/mysql/SslTunnelIntegrationTest.java
Outdated
Show resolved
Hide resolved
src/test/java/io/asyncer/r2dbc/mysql/SslTunnelIntegrationTest.java
Outdated
Show resolved
Hide resolved
src/test/java/io/asyncer/r2dbc/mysql/SslTunnelIntegrationTest.java
Outdated
Show resolved
Hide resolved
src/test/java/io/asyncer/r2dbc/mysql/SslTunnelIntegrationTest.java
Outdated
Show resolved
Hide resolved
src/test/java/io/asyncer/r2dbc/mysql/SslTunnelIntegrationTest.java
Outdated
Show resolved
Hide resolved
src/test/java/io/asyncer/r2dbc/mysql/SslTunnelIntegrationTest.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Mirro Mutth <mirromutth@gmail.com> Signed-off-by: jchrys <jchrys@me.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
src/test/java/io/asyncer/r2dbc/mysql/SslTunnelIntegrationTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Motivation:
A NPE was identified when utilizing
SslMode.TUNNEL
. The issue arises whenConnectionContext#isMariaDb
is invoked fromSslBridgeHandler#isTls13Enabled
, leading to an NPE due to theConnectionContext
not being initialized at that time.Modification:
Do not invoke
ConnectionContext#isMariaDb
when it is not initialized.Result:
This change addresses the NPE issue, ensuring stability when
SslMode.TUNNEL
is selected. It resolves the problem reported in GoogleCloudPlatform/cloud-sql-jdbc-socket-factory#1828