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 s3 head object errors #460

Merged
merged 1 commit into from
Jun 3, 2021
Merged

fix s3 head object errors #460

merged 1 commit into from
Jun 3, 2021

Conversation

rcoh
Copy link
Collaborator

@rcoh rcoh commented Jun 3, 2021

Issue #, if available: Fixes #456
Description of changes:

s3 head object and head bucket can both return 404 with no body. This requires a special error handling case to avoid attempting to parse the body as XML.

@kstich you may want to pull this protocol test in the smithy core protocol tests for S3 since this is unmodeled behavior.

Generated code diff: main-generated...s3-head-object-generated
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

s3 head object and head bucket can both return 404 with no body. This requires a special error handling case to avoid attempting to parse the body as XML.
@rcoh rcoh requested a review from jdisanti June 3, 2021 19:29
Copy link
Collaborator

@jdisanti jdisanti left a comment

Choose a reason for hiding this comment

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

LGTM!

@rcoh rcoh merged commit 6a92568 into main Jun 3, 2021
@rcoh rcoh deleted the s3-head-object branch June 3, 2021 19:45
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.

S3 HeadObject fails to deserialize 404s
2 participants