-
Notifications
You must be signed in to change notification settings - Fork 363
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
Conversation
|
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 |
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.
SERVER_SIDE_ENCRYPTION_AES 最好修改为 SERVER_SIDE_ENCRYPTION_AES256
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.
OK
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.
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) |
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.
同一个params在多个接口中使用,会不会有的接口不支持某些参数导致调用出错?
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.
出错的话,也是客户端行为
params={'uploadId': target_upload_id, | ||
'partNumber': str(target_part_number)}, | ||
headers=headers) | ||
params=params,headers=headers) |
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.
这里应该把versionid从params里面去掉了,因为已经取出来放到header里面了
No description provided.