-
Notifications
You must be signed in to change notification settings - Fork 26
Bug fixes and features for S3 support #36
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
Conversation
257b834
to
b0a7d06
Compare
We could add a unit test, to mock an HTTP service and inspect the request generated. |
Also, the "config".global is pretty slow in my environment, maybe we should address it. |
It turns out to be that the lua-resty-aws/src/resty/aws/utils.lua Line 77 in b0a7d06
and the request failed in my env. So it's better to set |
Are you testing this on your localhost without any related config set(like environment var 'AWS_REGION' or profile config)?
I think the |
Failed test on AWS environment due to deprecation of putting bucket name in request URI:
Maybe we should do a similar thing https://github.com/aws/aws-sdk-go/blob/aeeca02c4a3603ec615fa9a011e2e05c9d40e1f8/service/s3/host_style_bucket.go#L132-L136 |
b0a7d06
to
8ffdb73
Compare
I strongly doubt if |
3cdd9cf
to
3d7b036
Compare
Should we really calculate the host in |
Tested with @StarlightIbuki that the old request URI format also works well, so it is our decision whether to "put bucket into host instead of path". Already tested this PR with SecretsManager: |
89df1f8
to
0dc65b3
Compare
I made it an option and default to "in host". |
72ad12f
to
9a8a33e
Compare
mess s: query Co-authored-by: Mayo <[email protected]>
Co-authored-by: Qirui(Keery) Nie <[email protected]> s: cred test
Put bucket into host instead of path. Add option "s3_bucket_in_path" to use deprecated APIs. I wonder why the offical SDK do not update API definitions. They instead do it with patch code?!
4419ac9
to
70e23fa
Compare
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.
I am good with these changes.
ping @Tieske for another look.
70e23fa
to
9861a71
Compare
We don't have automatic CI and I assume the test suites have been ran locally. Since this |
fix: template incorrect handling of query string
fix: blob param should be raw body
feat: add support for credential from file
fix: escaping for param in uri
fix: handling raw body conflict with body param
fix: crash when no type check designated
fix: missing support for "headers" location
fix: compatibility for S3