Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConfigurationProfilePresetCodes.isKnownPreset is not working #1000

Closed
ivankhoosty opened this issue May 20, 2024 · 3 comments
Closed

ConfigurationProfilePresetCodes.isKnownPreset is not working #1000

ivankhoosty opened this issue May 20, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@ivankhoosty
Copy link

Describe the bug

static {
registerProperties(String.class);
}

should be

static {
registerProperties(ConfigurationProfilePresetCodes.class);
}

so that the public static Strings get added to KNOWN_PRESETS

Expected Behavior

known presets should be validated correctly

What plugins are used? What other connection properties were set?

n/a

Current Behavior

isKnownPreset method returns false for any value, as KNOWN_PRESETS is empty

Reproduction Steps

ConfigurationProfilePresetCodes.isKnownPreset("D0") returns false

Possible Solution

static {
registerProperties(ConfigurationProfilePresetCodes.class);
}

Additional Information/Context

No response

The AWS Advanced JDBC Driver version used

2.3.6

JDK version used

21.0.1

Operating System and version

unix

@ivankhoosty ivankhoosty added the bug Something isn't working label May 20, 2024
@ivankhoosty
Copy link
Author

@sergiyvamz
Copy link
Contributor

Hello @ivankhoosty

Thanks for reaching out and raising this issue.

Fix #1004 is available on our latest snapshot build.
Could you check it out and let us know if the issue still persists?

Thank you!

@ivankhoosty
Copy link
Author

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants