EcsCredentialsProvider ignores query params passed via AWS_CONTAINER_CREDENTIALS_RELATIVE_URI #1248
Labels
bug
This issue is a bug.
pending-release
This issue will be fixed by an approved PR that hasn't been released yet.
Describe the bug
As per current documentation: https://docs.aws.amazon.com/sdk-for-rust/latest/dg/credproviders.html the aws-rust-sdk should fully support Amazon ECS and Amazon EKS container credentials providers.
I spot a bug that doesn't allow me to pass query parameters to a http request.
A bug has been introduced in: smithy-lang/smithy-rs#2997
On line aws/rust-runtime/aws-config/src/ecs.rs#169 a new variable has been introduced
and on line aws/rust-runtime/aws-config/src/ecs.rs#186 we now pass it to http builder instead of the uri variable.
As
uri.path()
method returns only a path info we've lost all query info.A simplest way to fix this is to call a
path_and_query()
method on uri to populate query parameters to the path variable, kinda:Regression Issue
Expected Behavior
Current Behavior
observed: passed only uri
Reproduction Steps
netcat
to check http requestsPossible Solution
No response
Additional Information/Context
No response
Version
Environment details (OS name and version, etc.)
Amazon Linux 2 @ 5.10.230-202.885.amzn2int.x86_64
Logs
No response
The text was updated successfully, but these errors were encountered: