You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AwsClientProviderImpl provides a method for obtaining an IAM async client. Within this method, the endpointOverride property is used as the key for storing existing IAM clients. When working with the standard AWS endpoints, the endpointOverride property will be null. Therefore null will be used as the key for the created client, causing a NullPointerException.
Expected Behavior
An IAM client can be obtained for working with AWS standard endpoints.
Observed Behavior
A NullPointerException is thrown when trying to obtain an IAM client for AWS standard endpoints.
Steps to Reproduce
Steps to reproduce the behavior:
Create a test case using an AwsClientProviderImpl instance
Create an S3ClientRequest with endpointOverride=null
Call AwsClientProviderImpl.iamAsyncClient() with the previously created S3ClientRequest
See NullPointerException thrown
Possible Implementation
Define a default key that will be used if endpointOverride is null.
The text was updated successfully, but these errors were encountered:
At first glance, I don't think the 2 are related, even though both revolve around the endpointOverride feature. 486 aims at enabling to propagate the endpointOverride property also to the SDK classes used in vault-aws, as in that module the property currently isn't regarded at all. This issue aims at adjusting the AwsClientProviderImpl to not fail if no endpoindOverride is set, but generally the property is already supported for all clients obtained via the AwsClientProviderImpl. So I'd say both issues are independent and can be tackled in parallel without dependencies on each other.
486 aims to enable endpoint overriding in vault-aws
This issue reports unexpected NPE in AwsClientProviderImpl when endpointOverride is null in aws-s3-core
FYI: The setting key of endpointOverride for vault-aws will be defined as edc.vault.aws.endpoint.override. So, endpointOverride settings are not shared between Secrets Manager and S3.
Bug Report
Describe the Bug
The
AwsClientProviderImpl
provides a method for obtaining an IAM async client. Within this method, theendpointOverride
property is used as the key for storing existing IAM clients. When working with the standard AWS endpoints, theendpointOverride
property will be null. Thereforenull
will be used as the key for the created client, causing a NullPointerException.Expected Behavior
An IAM client can be obtained for working with AWS standard endpoints.
Observed Behavior
A NullPointerException is thrown when trying to obtain an IAM client for AWS standard endpoints.
Steps to Reproduce
Steps to reproduce the behavior:
AwsClientProviderImpl
instanceS3ClientRequest
withendpointOverride=null
AwsClientProviderImpl.iamAsyncClient()
with the previously createdS3ClientRequest
Possible Implementation
Define a default key that will be used if
endpointOverride
is null.The text was updated successfully, but these errors were encountered: