[CONJ-750] protocol error when not setting database, indicating null authentication plugin Created: 2019-12-13  Updated: 2020-12-10  Resolved: 2019-12-16

Status: Closed
Project: MariaDB Connector/J
Component/s: authentication
Affects Version/s: None
Fix Version/s: 1.7.6, 2.5.3

Type: Bug Priority: Critical
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to CONJ-848 Pool correction for java 7 connection... Closed

 Description   

When no database is set in the connection string, the driver will add a null byte in the authentication response packet.

The server will decode that additional null byte as an empty plugin value, doing an unnecessary authentication switch request step.
The second authentication will succeed but is an unnecessary round trip.

In combination with maxscale, this cause connection to fail.



 Comments   
Comment by Diego Dupin [ 2019-12-16 ]

commit is https://github.com/mariadb-corporation/mariadb-connector-j/commit/87e79e0f655bc3eb3af7153417db1670b5b18f2e

Generated at Thu Feb 08 03:18:02 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.