-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Upgrade mariadb-java-client from 2.7.5 to 3.0.3"
This reverts commit 8a174ef.
- Loading branch information
Showing
11 changed files
with
109 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
.../java/io/quarkus/jdbc/mariadb/runtime/graal/AuthenticationPluginLoader_Substitutions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package io.quarkus.jdbc.mariadb.runtime.graal; | ||
|
||
import java.sql.SQLException; | ||
|
||
import org.mariadb.jdbc.authentication.AuthenticationPlugin; | ||
import org.mariadb.jdbc.authentication.AuthenticationPluginLoader; | ||
import org.mariadb.jdbc.internal.com.send.authentication.ClearPasswordPlugin; | ||
import org.mariadb.jdbc.internal.com.send.authentication.Ed25519PasswordPlugin; | ||
import org.mariadb.jdbc.internal.com.send.authentication.NativePasswordPlugin; | ||
import org.mariadb.jdbc.internal.com.send.authentication.OldPasswordPlugin; | ||
import org.mariadb.jdbc.internal.com.send.authentication.SendGssApiAuthPacket; | ||
|
||
import com.oracle.svm.core.annotate.Substitute; | ||
import com.oracle.svm.core.annotate.TargetClass; | ||
|
||
@TargetClass(AuthenticationPluginLoader.class) | ||
@Substitute | ||
public final class AuthenticationPluginLoader_Substitutions { | ||
|
||
public static final String MYSQL_NATIVE_PASSWORD = "mysql_native_password"; | ||
public static final String MYSQL_OLD_PASSWORD = "mysql_old_password"; | ||
public static final String MYSQL_CLEAR_PASSWORD = "mysql_clear_password"; | ||
public static final String MYSQL_ED25519_PASSWORD = "client_ed25519"; | ||
private static final String GSSAPI_CLIENT = "auth_gssapi_client"; | ||
private static final String DIALOG = "dialog"; | ||
|
||
@Substitute | ||
public static AuthenticationPlugin get(String type) throws SQLException { | ||
switch (type) { | ||
case MYSQL_NATIVE_PASSWORD: | ||
return new NativePasswordPlugin(); | ||
case MYSQL_OLD_PASSWORD: | ||
return new OldPasswordPlugin(); | ||
case MYSQL_CLEAR_PASSWORD: | ||
return new ClearPasswordPlugin(); | ||
case DIALOG: | ||
throw new UnsupportedOperationException("Authentication strategy 'dialog' is not supported in GraalVM"); | ||
//return new SendPamAuthPacket(); | ||
case GSSAPI_CLIENT: | ||
return new SendGssApiAuthPacket(); | ||
case MYSQL_ED25519_PASSWORD: | ||
return new Ed25519PasswordPlugin(); | ||
|
||
default: | ||
throw new SQLException( | ||
"Client does not support authentication protocol requested by server. " | ||
+ "Consider upgrading MariaDB client. plugin was = " + type, | ||
"08004", 1251); | ||
} | ||
} | ||
|
||
} |
4 changes: 2 additions & 2 deletions
4
...mariadb/runtime/src/main/java/io/quarkus/jdbc/mariadb/runtime/graal/Pool_disable_JMX.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...untime/src/main/java/io/quarkus/jdbc/mariadb/runtime/graal/SendPamAuthPacket_Removal.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package io.quarkus.jdbc.mariadb.runtime.graal; | ||
|
||
import com.oracle.svm.core.annotate.Delete; | ||
import com.oracle.svm.core.annotate.TargetClass; | ||
|
||
@TargetClass(className = "org.mariadb.jdbc.internal.com.send.authentication.SendPamAuthPacket") | ||
@Delete | ||
public final class SendPamAuthPacket_Removal { | ||
} |
28 changes: 0 additions & 28 deletions
28
.../src/main/java/io/quarkus/jdbc/mariadb/runtime/graal/SendPamAuthPacket_Substitutions.java
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
...ntime/src/main/java/io/quarkus/jdbc/mariadb/runtime/graal/SharedMemorySocket_Removal.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package io.quarkus.jdbc.mariadb.runtime.graal; | ||
|
||
import com.oracle.svm.core.annotate.Delete; | ||
import com.oracle.svm.core.annotate.TargetClass; | ||
|
||
@TargetClass(className = "org.mariadb.jdbc.internal.io.socket.SharedMemorySocket") | ||
@Delete | ||
public final class SharedMemorySocket_Removal { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...time/src/main/java/io/quarkus/jdbc/mariadb/runtime/graal/SocketUtility_Substitutions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...graal/ConnectionHelper_socketHandler.java → ...db/runtime/graal/Utils_socketHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters