Skip to content

Broken logic in ConfigurableRetryLogic #2578

@debedb

Description

@debedb

Driver version

12.9.0

SQL Server version

N/A

Client Operating System

Amazon Linux

JAVA/JVM version

11

Table schema

N/A

Problem

When run out of a folder such as /var/task, for example (in AWS lambda), the following occurs:

2025-01-08 00:44:39 67a87119-0069-48d8-90ad-5de8e2a32ee0 WARN  CompositeHandler:126 - handleRequest: Completed with an exception.
java.lang.StringIndexOutOfBoundsException: begin 0, end -6, length 10
at java.lang.String.checkBoundsBeginEnd(Unknown Source) ~[?:?]
at java.lang.String.substring(Unknown Source) ~[?:?]
at com.microsoft.sqlserver.jdbc.ConfigurableRetryLogic.getCurrentClassPath(ConfigurableRetryLogic.java:290) ~[task/:?]

This is due to hardcoded substring logic.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Closed Issues

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions