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 minor regression on custom User-Agent #990

Merged
merged 4 commits into from
Apr 2, 2024

Conversation

wktk
Copy link
Contributor

@wktk wktk commented Mar 29, 2024

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Reference: #0000 <!--- Pull Requests should have an associated issue or may be closed --->

Please briefly describe the changes proposed in this pull request.


Since version 1.19 of aws-sdk-go-v2, some special characters in User-Agent strings are being escaped (aws/aws-sdk-go-v2#2154). In aws-sdk-go-base, the handling of User-Agent strings has been updated in #554, but as for TF_APPEND_USER_AGENT it's still appended with the aws-sdk-go-v2 implementation. This has led to a regression in our usage of terraform-provider-aws because of the presence of a / character in our TF_APPEND_USER_AGENT. While it might sound like an edge case, but I'd appreciate it if TF_APPEND_USER_AGENT is appended as it used to be!

@wktk wktk requested a review from a team as a code owner March 29, 2024 08:01
@hashicorp-cla
Copy link

hashicorp-cla commented Mar 29, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@gdavison gdavison 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 the PR, @wktk. Looks good! 🚀

@gdavison gdavison merged commit 7bcb138 into hashicorp:main Apr 2, 2024
12 checks passed
@wktk wktk deleted the fix-custom-ua branch July 10, 2024 08:44
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.

3 participants