Skip to content

Conversation

@aaronchung-bitquill
Copy link
Contributor

@aaronchung-bitquill aaronchung-bitquill commented Jun 2, 2023

Summary

Fix in the IamAuthConnectionPlugin to prioritize the override property IAM_DEFAULT_PORT then Hosts port, and then Dialect port.

Description

Fix in the IamAuthConnectionPlugin to prioritize the override property IAM_DEFAULT_PORT then Hosts port, and then Dialect port.
This also results in change of behaviour. When an invalid port value is specified for IAM_DEFAULT_PORT, it no longer throws an exception, but rather logs a warning and then falls back on either the Host port or Dialect default port.

Additional Reviewers

@sergiyv-improving @karenc-bq @aaron-congo @crystall-bitquill

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

IamAuthConnectionPlugin.useCachedIamToken=Use cached IAM token = ''{0}''
IamAuthConnectionPlugin.generatedNewIamToken=Generated new IAM token = ''{0}''
IamAuthConnectionPlugin.invalidPort=Port number: {0} is not valid. Port number should be greater than zero.
IamAuthConnectionPlugin.invalidPort=Port number: {0} is not valid. Port number should be greater than zero. Falling back to host or dialect port.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Falling back to default port.
?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just changed the messaging to "...Falling back to default port."

@aaronchung-bitquill aaronchung-bitquill force-pushed the bugfix/issue-473-iam-default-port branch from a8ee4cf to 7360843 Compare June 5, 2023 17:07
@aaronchung-bitquill aaronchung-bitquill marked this pull request as ready for review June 5, 2023 17:08
@karenc-bq karenc-bq merged commit 247c28e into aws:main Jun 5, 2023
@karenc-bq karenc-bq deleted the bugfix/issue-473-iam-default-port branch June 5, 2023 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants