[CONJ-1141] StringIndexOutOfBoundsException when handling OkPacket Created: 2023-12-12  Updated: 2023-12-12

Status: Open
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: 3.0.10, 3.1.4
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Marco Cheung Assignee: Diego Dupin
Resolution: Unresolved Votes: 0
Labels: None
Environment:

Application A:

  • Spring Boot 2.7.12
  • MariaDB Connector 3.1.4 (connection string: jdbc:mariadb:// {my-db-host}:3306/app_a?useMysqlMetadata=true)
    - AWS RDS MariaDB 10.5.21 with RDS Proxy
    - Docker base image: adoptopenjdk/openjdk11-openj9:jre

    Application B:
    - Spring Boot 2.7.12
    - MariaDB Connector 3.0.10 (connection string: jdbc:mariadb://{my-db-host}

    :3306/app_b?useMysqlMetadata=true)

  • AWS RDS MariaDB 10.5.21 with RDS Proxy
  • Docker base image: adoptopenjdk/openjdk11-openj9:jre

Attachments: Text File stack_trace_3.0.10.txt     Text File stack_trace_3.1.4.txt    

 Description   

Our two spring boot applications sometimes received StringIndexOutOfBoundsException in OkPacket when creating transaction. May I know is there any scenario that the buffer will be null and cause the issue?

For your reference, we have some other applications using Spring Boot 2.4.9 with MariaDB Connector 2.7.3. We didn't see any exception throw by MariaDB Connector so far when creating transaction. I checked that 2.7.3 didn't contain OkPacket class so I am not sure are they related.



 Comments   
Comment by Diego Dupin [ 2023-12-12 ]

This would seems to be corrected in 3.2.0 with this commit (even if not related to it directly)

could you confirm ?

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