Release Notes for MariaDB Connector/J 2.7.8

Overview

MariaDB Connector/J is an interface between Java applications and MariaDB Server. MariaDB Connector/J enables the development of the development of Java 8, Java 11, and Java 17 applications for MariaDB database products.

MariaDB Connector/J 2.7.8 was released on 2023-01-24. This release is of General Availability (GA) maturity. This release is compatible with JDBC 4.2.

Issues Fixed

  • When a stored procedure is called in a security context with the SUPER privilege, the max statement timeout is not respected. (CONJ-1039)

    • In previous releases, this problem could occur when a CallableStatement object is used to call a stored procedure, and the setQueryTimeout() method is used.

    • A stored procedure is executed in a security context with the SUPER privilege in the following situations:

      • The stored procedure is defined with SQL SECURITY DEFINER and has DEFINER=some_user, where some_user has the SUPER privilege.

      • The stored procedure is defined with SQL SECURITY INVOKER and the invoking user has the SUPER privilege.

    • Starting with this release, max statement timeouts should be compatible with stored procedures executed in a SUPER security context.

  • When MariaDB Connector/J writes to its packet buffer, it can throw an ArrayIndexOutOfBoundsException exception. (CONJ-1041)

  • When Connector/J performs an SSL Handshake, it sets the CLIENT_SSL capability flag in the SSL Connection Request Packet, but not in the Handshake Response Packet. (CONJ-1023)

    • In previous releases, the CLIENT_SSL capability flag is not required to be set in the Handshake Response Packet, so this issue is only noticed when inspecting the network traffic.

    • Starting with this release, Connector/J sets the CLIENT_SSL capability flag in both the SSL Connection Request Packet and in the Handshake Response Packet.