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

Handle 307 redirect for file-like object, don't use isinstance check #236

Merged
merged 1 commit into from
Feb 20, 2014

Conversation

jamesls
Copy link
Member

@jamesls jamesls commented Feb 20, 2014

This fixes aws/aws-cli#544 and aws/aws-cli#654

The issue here is that the CLI uses a file like object
that implements .read() and .seek(), but doesn't actually
inherit from the file/_IOBase.

This means that we weren't rewinding the stream in the case of 307 redirects
when using multipart uploads in the CLI.

This fixes aws/aws-cli#544 and aws/aws-cli#654

The issue here is that the CLI uses a file like object
that implements .read() and .seek(), but doesn't actually
inherit from the file/_IOBase.
@danielgtaylor
Copy link
Member

LGTM, much better than the existing check. 🚢-it!

@toastdriven
Copy link
Contributor

:shipit:

@jamesls jamesls merged commit 240bed2 into boto:develop Feb 20, 2014
@jamesls jamesls deleted the follow-307-multipart branch June 23, 2014 18:19
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.

aws s3 doesn't follow TemporaryRedirect
3 participants