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(smithy-client): rfc-7231 date-time value #3814

Merged
merged 2 commits into from
Jul 25, 2022
Merged

fix(smithy-client): rfc-7231 date-time value #3814

merged 2 commits into from
Jul 25, 2022

Conversation

dustin-lennon
Copy link
Contributor

@dustin-lennon dustin-lennon commented Jul 20, 2022

Issue

Resolves #3813

The regexp does not handle times with single digit hours

Description

Presently, if a date-time value comes back with a single digit for the hour, the regular expression checks fail throwing back TypeError: Invalid RFC-7231 date-time value

By adjusting the regular expression to accept either 1 or 2 length digits for the hour, the checks now pass.

Testing

Unit testing

image


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

@dustin-lennon dustin-lennon requested a review from a team as a code owner July 20, 2022 16:25
Copy link
Contributor

@yenfryherrerafeliz yenfryherrerafeliz left a comment

Choose a reason for hiding this comment

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

Hi @dustin-lennon, the proposed change looks reasonable for me.

Could you please add unit test for this?. Please let us know if you have any questions about it.

@dustin-lennon
Copy link
Contributor Author

Hello @yenfryherrerafeliz I have added the unit test for this. Please check latest commit.

@dustin-lennon
Copy link
Contributor Author

what's the status?

@yenfryherrerafeliz yenfryherrerafeliz merged commit f52a985 into aws:main Jul 25, 2022
@github-actions
Copy link

github-actions bot commented Aug 9, 2022

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 Aug 9, 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.

TypeError: Invalid RFC-7231 date-time value when sending HeadObjectCommand
3 participants