Closed jxerome closed 1 year ago
Thanks for submitting this issue @jxerome and the corresponding PR! I'll get back to you with an update after taking a look.
We'll have the fix for this in our next release, version 2.1.0.14. Thanks for contributing to the Redshift JDBC Driver!
Driver version
2.1.0.12 with AWS SDK 1.12.408
Redshift version
Client Operating System
Linux
JAVA/JVM version
Java 11
Table schema
Not relevant
Problem description
Configuration
Program is on a EC2 instance with a role allowed to assume another role with access permission. A profile is defined in .aws/credentials
The connection URL contains a reference to the profile:
Expected behavior:
Actual behavior:
The driver throws an
NullPointerException
.JDBC trace logs
First analysis
In
PluginProfilesConfigFile.java
on line 88, the source profile is read from the current profile and passed to the methodgetCredentials(String)
on line 89 without null check.Reproduction code