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

The extra_args was not properly relayed within MultipartDownloader #503

Conversation

rayluo
Copy link
Contributor

@rayluo rayluo commented Feb 19, 2016

This was causing the transfer download feature failure when downloading big file from a RequestPayer=requester bucket.

downloader.download_file(
'bucket', 'key', 'filename', len(response_body), extra_args)
for call_args in client.get_object.call_args_list:
self.assertEqual(call_args[1].get('RequestPayer'), 'requester')
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh let's use the stubber for these and the expected_params. I have been using it lately. It's pretty handy and makes the test case much cleaner.

@kyleknap
Copy link
Contributor

Looks good. Just had a comment on the test where we should try to use the stubber instead of mock for clients.

@kyleknap
Copy link
Contributor

Thanks! 🚢

@rayluo rayluo added bug This issue is a confirmed bug. pr/needs-review This PR needs a review from a member of the team. s3 labels Feb 20, 2016
@jamesls
Copy link
Member

jamesls commented Feb 20, 2016

:shipit:

@jamesls jamesls added pr/ready-to-merge This PR is ready to be merged. and removed pr/needs-review This PR needs a review from a member of the team. labels Feb 22, 2016
rayluo added a commit that referenced this pull request Feb 22, 2016
…le-from-requester-paid-bucket

The extra_args was not properly relayed within MultipartDownloader
@rayluo rayluo merged commit a8afc9f into boto:develop Feb 22, 2016
@rayluo rayluo deleted the fix-bug-when-downloading-large-file-from-requester-paid-bucket branch February 22, 2016 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a confirmed bug. pr/ready-to-merge This PR is ready to be merged. s3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants