-
Notifications
You must be signed in to change notification settings - Fork 4
Conversation
Please fix all CI here. |
Looks like we are missing the location. |
I believe this is why we need |
No,I have not found it yet. |
Maybe we need to use https://github.com/aws/aws-sdk-go-v2/blob/cc132614991d2e36a7b5ca8685aea13bf1337224/aws/signer/v4/middleware.go#L107-L110
|
Please always run |
It seems like we have to find a way to replace cfg.LowerCaseHeaderMaps = aws.Bool(true). |
Maybe you want to use the following style to add code blocks.
|
service.toml
Outdated
@@ -4,7 +4,7 @@ name = "s3" | |||
|
|||
[namespace.service.new] | |||
required = ["credential"] | |||
optional = [ "endpoint", "http_client_options", "force_path_style", "disable_100_continue", "use_accelerate", "use_arn_region"] | |||
optional = [ "endpoint", "http_client_options", "force_path_style", "location", "disable_100_continue", "use_accelerate", "use_arn_region"] |
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.
Why do we need location
in this service?
ping @JinnyYi for a review. |
storage.go
Outdated
|
||
getReq, _ := s.service.GetObjectRequest(input) | ||
url, headers, err := getReq.PresignRequest(expire) | ||
presignClient := s3.NewPresignClient(s.service) |
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.
Maybe we need to set PresignOptions
like expire
?
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.
Maybe we need to set
PresignOptions
likeexpire
?
Yes, i missed it too!!!
i will check it and fix it right now.
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.
done!
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.
Seems that the configs for presign client could be different with basic client? Maybe we can consider or discuss it later?
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.
@JinnyYi
I found that in aws-sdk-go-v2's test case,they use it like
presignClient := s3.NewPresignClient(s.service, func(options *s3.PresignOptions) {
options.Expires = expire
})
And now I config it in this way too.
Looks much better than the first version! |
Well,thanks to all your reviewers. |
ping @JinnyYi for the final decision. |
I've no more questions. Maybe we should identify the following issues soon to provide capabilities equivalent to the current version: |
Fix #86
It's incomplete now.