-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Adding s3_list_objects_encoding_type_url handler to ListObjectsV2 #1552
Changes from 2 commits
f9eef86
3231b9a
8ef58cf
a0d2f3f
321aece
9d31414
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -880,6 +880,8 @@ def remove_subscribe_to_shard(class_attributes, **kwargs): | |
|
||
('before-parameter-build.s3.ListObjects', | ||
set_list_objects_encoding_type_url), | ||
('before-parameter-build.s3.ListObjectsV2', | ||
set_list_objects_encoding_type_url), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would be great if we can add an integration test for this. Honestly, I would recommend adding one similar to the one that added the customization: https://github.com/boto/botocore/pull/726/files#diff-02f637532aa2fba41fa91ac0763345b4 |
||
('before-call.s3.PutBucketTagging', calculate_md5), | ||
('before-call.s3.PutBucketLifecycle', calculate_md5), | ||
('before-call.s3.PutBucketLifecycleConfiguration', calculate_md5), | ||
|
@@ -943,6 +945,7 @@ def remove_subscribe_to_shard(class_attributes, **kwargs): | |
('before-parameter-build.route53', fix_route53_ids), | ||
('before-parameter-build.glacier', inject_account_id), | ||
('after-call.s3.ListObjects', decode_list_object), | ||
('after-call.s3.ListObjectsV2', decode_list_object), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So unfortunately. We cannot purely reuse the |
||
|
||
# Cloudsearchdomain search operation will be sent by HTTP POST | ||
('request-created.cloudsearchdomain.Search', | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also need to register the decoding after the response is received (line 945).
One handler injects the encoding type (
set_list_objects_encoding_type_url
), and the other handler (decode_list_object
) decodes objects if we injected the encoding type param. We need both.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah got it.