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 regression when handling 200 error responses from S3 #342

Merged
merged 1 commit into from
Oct 7, 2014

Conversation

jamesls
Copy link
Member

@jamesls jamesls commented Oct 7, 2014

We now do not try to parse the error response unless it's an error
HTTP status code. This means the handler needs to be updated such
that it is the one that does the Error parsing. Fortunately, we
don't need to fully parse the XML error response. We just need to
know that the top level key is an Error node before saying we
need to retry the request.

cc @danielgtaylor @kyleknap

We now do not try to parse the error response unless it's an error
HTTP status code.  This means the handler needs to be updated such
that _it_ is the one that does the Error parsing.  Fortunately, we
don't need to fully parse the XML error response.  We just need to
know that the top level key is an Error node before saying we
need to retry the request.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) when pulling 6bb8f35 on jamesls:fix-s3-200-errors into 6a564b6 on boto:develop.

@kyleknap
Copy link
Contributor

kyleknap commented Oct 7, 2014

LGTM 🚢

@jamesls jamesls merged commit 6bb8f35 into boto:develop Oct 7, 2014
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