818e902180
- Update to 8.2.0: - Added the missing implementation for Connection.releaseSavepoint(). (Bug #35811592) - Connector/J now supports WebAuthn Authentication. See Connecting Using Web Authentication (WebAuthn) Authentication for details. (WL #15197) - The auto-deserialization function for BLOB objects, deprecated since release 8.1.0, is now removed. (WL #15747) - The SessionStateChanges objects failed to provide proper values for section state changes. This was because Connector/J parsed the OK_Packet incorrectly, and this patch fixes the issue. (Bug #35358417) - Using javax.sql.rowset.CachedRowSet#getDate() or javax.sql.rowset.CachedRowSet#getTimestamp() on DATETIME fields resulted in a ClassCastException. It was because the default return type of DATETIME fields by ResultSet.getObject() was java.time.LocalDateTime instead of java.sql.Timestamp. To prevent the exception, a new connection property, treatMysqlDatetimeAsTimestamp, now allows the return type of DATETIME by ResultSet.getObject() to be changed to java.sql.Timestamp. (Bug #107215, Bug #34139593) - Obtaining a connection from a MysqlConnectionPoolDataSource made Connector/J reset its connection state unless the connection property paranoid was set to be true. During the reset, the autocommit mode of the session was restored to the default value specified on the server by the system variable autocommit, while the JDBC specification mandates that autocommit be always enabled for a freshly created connection. With this patch, the connection reset will always enable autocommit in the situation. (Bug #91351, Bug #28225464) OBS-URL: https://build.opensuse.org/request/show/1125701 OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=99
44 lines
4.0 KiB
Diff
44 lines
4.0 KiB
Diff
Index: mysql-connector-j-8.2.0/src/main/protocol-impl/java/com/mysql/cj/protocol/a/NativeAuthenticationProvider.java
|
|
===================================================================
|
|
--- mysql-connector-j-8.2.0.orig/src/main/protocol-impl/java/com/mysql/cj/protocol/a/NativeAuthenticationProvider.java
|
|
+++ mysql-connector-j-8.2.0/src/main/protocol-impl/java/com/mysql/cj/protocol/a/NativeAuthenticationProvider.java
|
|
@@ -58,7 +58,6 @@ import com.mysql.cj.protocol.a.NativeCon
|
|
import com.mysql.cj.protocol.a.authentication.AuthenticationFidoClient;
|
|
import com.mysql.cj.protocol.a.authentication.AuthenticationKerberosClient;
|
|
import com.mysql.cj.protocol.a.authentication.AuthenticationLdapSaslClientPlugin;
|
|
-import com.mysql.cj.protocol.a.authentication.AuthenticationOciClient;
|
|
import com.mysql.cj.protocol.a.authentication.AuthenticationWebAuthnClient;
|
|
import com.mysql.cj.protocol.a.authentication.CachingSha2PasswordPlugin;
|
|
import com.mysql.cj.protocol.a.authentication.MysqlClearPasswordPlugin;
|
|
@@ -259,7 +258,6 @@ public class NativeAuthenticationProvide
|
|
pluginsToInit.add(new MysqlOldPasswordPlugin());
|
|
pluginsToInit.add(new AuthenticationLdapSaslClientPlugin());
|
|
pluginsToInit.add(new AuthenticationKerberosClient());
|
|
- pluginsToInit.add(new AuthenticationOciClient());
|
|
pluginsToInit.add(new AuthenticationFidoClient());
|
|
pluginsToInit.add(new AuthenticationWebAuthnClient());
|
|
|
|
Index: mysql-connector-j-8.2.0/src/main/resources/com/mysql/cj/LocalizedErrorMessages.properties
|
|
===================================================================
|
|
--- mysql-connector-j-8.2.0.orig/src/main/resources/com/mysql/cj/LocalizedErrorMessages.properties
|
|
+++ mysql-connector-j-8.2.0/src/main/resources/com/mysql/cj/LocalizedErrorMessages.properties
|
|
@@ -49,18 +49,6 @@ AuthenticationLdapSaslClientPlugin.Missi
|
|
AuthenticationLdapSaslClientPlugin.FailCreateSaslClient=Failed creating a SASL client for the authentication mechanism ''{0}''.
|
|
AuthenticationLdapSaslClientPlugin.ErrProcessingAuthIter=Error while processing an authentication iteration for the authentication mechanism ''{0}''.
|
|
|
|
-AuthenticationOciClientPlugin.ConfigFileNotFound=OCI configuration file not found.
|
|
-AuthenticationOciClientPlugin.OciSdkNotFound=The OCI SDK cannot be found or it is not installed.
|
|
-AuthenticationOciClientPlugin.OciConfigFileError=The OCI configuration file cannot be read.
|
|
-AuthenticationOciClientPlugin.ProfileNotFound=The specified profile is not found in the OCI configuration file.
|
|
-AuthenticationOciClientPlugin.OciConfigFileMissingEntry=The OCI configuration file does not contain a ''fingerprint'' or ''key_file'' entry.
|
|
-AuthenticationOciClientPlugin.PrivateKeyNotFound=The private key cannot be found at the location referenced in the OCI configuration entry ''key_file''.
|
|
-AuthenticationOciClientPlugin.FailedReadingPrivateKey=Failed reading the private key file referenced in the OCI configuration entry ''key_file''.
|
|
-AuthenticationOciClientPlugin.PrivateKeyNotValid=The OCI configuration entry ''key_file'' does not reference a valid key file.
|
|
-AuthenticationOciClientPlugin.SecurityTokenFileNotFound=The security token file cannot be found at the location referenced in the OCI configuration entry ''security_token_file''.
|
|
-AuthenticationOciClientPlugin.SecurityTokenTooBig=Invalid security token file. File size above 10 KB.
|
|
-AuthenticationOciClientPlugin.FailedReadingSecurityTokenFile=Failed reading the security token file referenced in the OCI configuration entry ''security_token_file''.
|
|
-
|
|
AuthenticationProvider.BadDefaultAuthenticationPlugin=Improper value "{0}" for property ''defaultAuthenticationPlugin''.
|
|
AuthenticationProvider.DefaultAuthenticationPluginIsNotListed=Default authentication plugin "{0}" is neither one of the built-in plugins nor one of the plugins listed in ''authenticationPlugins''.
|
|
AuthenticationProvider.BadDisabledAuthenticationPlugin=Can''t disable the default authentication plugin. Either remove "{0}" from the disabled authentication plugins list, or choose a different default authentication plugin.
|