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

bucket tagging & bucket encryption & bucket version #178

Merged
merged 8 commits into from
May 20, 2019
Merged

bucket tagging & bucket encryption & bucket version #178

merged 8 commits into from
May 20, 2019

Conversation

coderall
Copy link
Collaborator

No description provided.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

oss2/__init__.py Outdated
@@ -23,9 +23,10 @@
from .utils import http_date, http_to_unixtime, iso8601_to_unixtime, date_to_iso8601, iso8601_to_date


from .models import BUCKET_ACL_PRIVATE, BUCKET_ACL_PUBLIC_READ, BUCKET_ACL_PUBLIC_READ_WRITE
from .models import BUCKET_ACL_PRIVATE, BUCKET_ACL_PUBLIC_READ, BUCKET_ACL_PUBLIC_READ_WRITE, SERVER_SIDE_ENCRYPTION_AES, SERVER_SIDE_ENCRYPTION_KMS
Copy link
Contributor

Choose a reason for hiding this comment

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

SERVER_SIDE_ENCRYPTION_AES 最好修改为 SERVER_SIDE_ENCRYPTION_AES256

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

OK

Copy link

@kkuai kkuai left a comment

Choose a reason for hiding this comment

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

the first review!

else:
bucket.get_object_to_file(key, filename, progress_callback=progress_callback)
bucket.get_object_to_file(key, filename, progress_callback=progress_callback, params=params)
Copy link

Choose a reason for hiding this comment

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

同一个params在多个接口中使用,会不会有的接口不支持某些参数导致调用出错?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

出错的话,也是客户端行为

params={'uploadId': target_upload_id,
'partNumber': str(target_part_number)},
headers=headers)
params=params,headers=headers)
Copy link

Choose a reason for hiding this comment

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

这里应该把versionid从params里面去掉了,因为已经取出来放到header里面了

@coderall coderall merged commit 98a7bba into aliyun:dev-versioning May 20, 2019
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.

None yet

4 participants