From 818e9021801fe8b1d2de8505f78dbeed6b115af5ca9959f287f91d0cdd09a65f Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Mon, 13 Nov 2023 19:07:55 +0000 Subject: [PATCH] Accepting request 1125701 from home:david.anes:branches:Java:packages - 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 --- mysql-connector-java-8.1.0.tar.gz | 3 -- mysql-connector-java-8.2.0.tar.gz | 3 ++ mysql-connector-java-remove-oci-support.patch | 18 +++++----- mysql-connector-java.changes | 34 +++++++++++++++++++ mysql-connector-java.spec | 2 +- 5 files changed, 47 insertions(+), 13 deletions(-) delete mode 100644 mysql-connector-java-8.1.0.tar.gz create mode 100644 mysql-connector-java-8.2.0.tar.gz diff --git a/mysql-connector-java-8.1.0.tar.gz b/mysql-connector-java-8.1.0.tar.gz deleted file mode 100644 index 785f439..0000000 --- a/mysql-connector-java-8.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:287719e9536a8c717df1380a5da0a7f8ae3b538ea0e661bdf30c6d5aa5f14ab7 -size 1903122 diff --git a/mysql-connector-java-8.2.0.tar.gz b/mysql-connector-java-8.2.0.tar.gz new file mode 100644 index 0000000..d4b8c46 --- /dev/null +++ b/mysql-connector-java-8.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c56456c13a32c92f633214de8f54757ae1b222ac5569fe63f7959fa195276ed +size 1902017 diff --git a/mysql-connector-java-remove-oci-support.patch b/mysql-connector-java-remove-oci-support.patch index 906236c..4fe9ae6 100644 --- a/mysql-connector-java-remove-oci-support.patch +++ b/mysql-connector-java-remove-oci-support.patch @@ -1,27 +1,27 @@ -Index: mysql-connector-j-8.0.33/src/main/protocol-impl/java/com/mysql/cj/protocol/a/NativeAuthenticationProvider.java +Index: mysql-connector-j-8.2.0/src/main/protocol-impl/java/com/mysql/cj/protocol/a/NativeAuthenticationProvider.java =================================================================== ---- mysql-connector-j-8.0.33.orig/src/main/protocol-impl/java/com/mysql/cj/protocol/a/NativeAuthenticationProvider.java -+++ mysql-connector-j-8.0.33/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; - import com.mysql.cj.protocol.a.authentication.MysqlNativePasswordPlugin; -@@ -257,7 +256,6 @@ public class NativeAuthenticationProvide +@@ -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()); - // plugins from authenticationPluginClasses connection parameter -Index: mysql-connector-j-8.0.33/src/main/resources/com/mysql/cj/LocalizedErrorMessages.properties +Index: mysql-connector-j-8.2.0/src/main/resources/com/mysql/cj/LocalizedErrorMessages.properties =================================================================== ---- mysql-connector-j-8.0.33.orig/src/main/resources/com/mysql/cj/LocalizedErrorMessages.properties -+++ mysql-connector-j-8.0.33/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}''. diff --git a/mysql-connector-java.changes b/mysql-connector-java.changes index a086b47..d2167b7 100644 --- a/mysql-connector-java.changes +++ b/mysql-connector-java.changes @@ -1,3 +1,37 @@ +------------------------------------------------------------------- +Mon Nov 13 16:34:19 UTC 2023 - David Anes + +- 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) + ------------------------------------------------------------------- Tue Sep 26 05:14:00 UTC 2023 - Fridrich Strba diff --git a/mysql-connector-java.spec b/mysql-connector-java.spec index 3103334..67449cd 100644 --- a/mysql-connector-java.spec +++ b/mysql-connector-java.spec @@ -18,7 +18,7 @@ %define new_name mysql-connector-j Name: mysql-connector-java -Version: 8.1.0 +Version: 8.2.0 Release: 0 Summary: Official JDBC Driver for MySQL License: GPL-2.0-or-later