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(signature-v4): getCanonicalHeaders ignores undefined header values #3789

Merged

Conversation

lew-gordon
Copy link
Contributor

Issue

Issue #3788

Description

It seems like there are certain edge cases that cause header values to become undefined. In these scenarios we'll hit an exception.

Testing

Tested via provided unit test.

Additional context

I'm not sure that will necessary fix #3788, but at least it should handle one odd scenario.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

It seems like there are certain edge cases that cause header values
to become undefined. In these scenarios we'll hit an exception.
@AllanZhengYP
Copy link
Contributor

The change looks good to me. Thanks for the contribution! @lew-gordon

@AllanZhengYP AllanZhengYP merged commit 78690d3 into aws:main Jul 12, 2022
@AllanZhengYP AllanZhengYP changed the title fix(getCanonicalHeaders): ignores undefined header values fix(signature-v4): getCanonicalHeaders ignores undefined header values Jul 12, 2022
@curtdept
Copy link

curtdept commented Jul 14, 2022

@AllanZhengYP this change looks like it cause a kinesis client signature regression in 128, is that the patch you have in 129? Moving back to 127 corrected it.

"'Host' or ':authority' must be a 'SignedHeader' in the AWS Authorization."

Update: nm just read through 3796

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[aws-sdk/signature-v4] getCanonicalHeaders fails on undefined header value
3 participants