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

fix: fixes refreshing expired credentials by preventing DefaultCredentialsProvider from being autoclosed #498

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

sberss
Copy link
Contributor

@sberss sberss commented Jul 17, 2024

Fixes #494

Pulls the client instantiation out of the try-with-resource block to stop it being closed and therefore not usable when refreshing expired credentials.

@sberss sberss force-pushed the fix-auth-with-role-assumption branch from 176e394 to c38610d Compare July 17, 2024 09:16
Copy link
Contributor

@markjschreiber markjschreiber left a comment

Choose a reason for hiding this comment

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

Thanks for this!

@markjschreiber markjschreiber merged commit 3a296b3 into awslabs:main Jul 18, 2024
1 check passed
@sberss
Copy link
Contributor Author

sberss commented Jul 18, 2024

No worries! Any chance I could get this and #499 in a new release?

stefanofornari pushed a commit to stefanofornari/aws-java-nio-spi-for-s3 that referenced this pull request Aug 6, 2024
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.

java.lang.IllegalStateException: Connection pool shut down
2 participants