Bug 2043212

Summary: Update mariadb-java client to 2.7.1+
Product: Red Hat Enterprise Linux 8 Reporter: Honza Horak <hhorak>
Component: mariadb-java-clientAssignee: Zuzana Miklankova <zmiklank>
Status: CLOSED ERRATA QA Contact: Jakub Heger <jheger>
Severity: unspecified Docs Contact: Lenka Špačková <lkuprova>
Priority: unspecified    
Version: 8.7CC: databases-maint, dklon, fspolti, jheger, mizdebsk, mkoncek, mschorm, zmiklank
Target Milestone: rcKeywords: FutureFeature, Rebase, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mariadb-java-client-2.7.1-1.el8 Doc Type: Enhancement
Doc Text:
.`mariadb-java-client` rebased to version 2.7.1 The `mariadb-java-client` package, which provides a `MariaDB` connector for applications developed in Java, has been updated to version 2.7.1. This update introduces the following changes in services: * Client authentication plug-ins are now defined as services. As a result, you can easily add new client authentication plug-ins. The driver includes the `caching_sha2_password` and `sha256_password` plug-ins for compatibility with `MySQL`. * Credential plug-ins are now permitted to provide credential information. The driver includes three default plug-ins: `AWS IAM`, `Environment`, and `Property`. * The SSL factory service now enables you to use custom SSL implementation. For example, you can create a new `HostnameVerifier` implementation. Other notable changes include: * The `enabledSslProtocolSuites` option now includes TLSv1.2 by default.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-08 09:39:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2069660    
Bug Blocks:    

Description Honza Horak 2022-01-20 19:30:58 UTC
This bug was initially created as a copy of Bug #1849812

I am copying this bug because: 

mariadb-java-client was updated to 2.7.1 in RHEL-7, so we have a regression in RHEL-8 now. We should figure out how to close this gap (whether the rebase would be acceptable in RHEL-8 or whether to include a new package).


Description of the original problem (RHEL-7):
Would be good if the mariadb-java-client distributed on rhel is greater than version 2.5, on this version support to the 'caching_sha2_password' on the client side, the current version does not support it thus we need to configure the MySQL or Mariadb newer versions to use the old authentication plugin: mysql_native_password

Version-Release number of selected component (if applicable):
mariadb-java-client: 2.2.5


How reproducible:
Use this driver to connect to a MySQL 8 database.



Steps to Reproduce:
Try to connect an application to the MySQL 8 database with the caching_sha2_password authentication plugin enabled (defualt).


Actual results:
App fails to connect to the database.

Expected results:
A successful connection must happen.


Additional info:
Workaround is to switch back to the old authentication plugin: mysql_native_password

Comment 21 errata-xmlrpc 2022-11-08 09:39:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (mariadb-java-client bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:7562