-
Notifications
You must be signed in to change notification settings - Fork 654
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
GetObjectAcl of S3 always returns an empty grantee type #1013
Comments
Fixes the generated enum value names to not be lowercased when capitalized. Related to aws/aws-sdk-go-v2#1013
Fixes the generated enum value names to not be lower cased when capitalized. Related to aws/aws-sdk-go-v2#1013
Fixes the generated enum value names to not be lower cased when capitalized. Related to aws/aws-sdk-go-v2#1013
Fixes the generated enum value names to not be lower cased when capitalized. Related to aws/aws-sdk-go-v2#1013
Fixes the generated enum value names to not be lower cased when capitalized. Related to aws/aws-sdk-go-v2#1013
Thanks for reporting this issue @shogo82148. The SDK's behavior of not being able to deserialize the Grantee type is definitely a bug in the SDK. This most likely is related to the SDK's handling of XML attributes with namespaces. There was a similar bug in the v1 SDK few years ago, aws/aws-sdk-go#975 and aws/aws-sdk-go#916. Also thanks for pointing out the unexpected enum name casing. I've corrected the enum casing in #1020. |
Fixes the generated enum value names to not be lower cased when capitalized. Related to aws/aws-sdk-go-v2#1013
…1020) Fixes API enum parameter generated constant names to have expected casing Related to aws/smithy-go#252 Related to #1013
This does seem to be related to namespaces. For example, the actual XML returned looks something like this: <Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser">
<ID>foo</ID>
<DisplayName>bar</DisplayName>
</Grantee> We try to decode this right around here. The parsed values of the attrs look something like this:
We're checking |
And this does appear to be exactly the same issue referenced above |
Adds additional protocol tests for member bound to XML attribute within a struct that also has an XML namespace. Related to aws/smithy-go#255, aws/aws-sdk-go-v2#1034, aws/aws-sdk-go-v2#1013
Adds additional protocol tests for member bound to XML attribute within a struct that also has an XML namespace. Related to aws/smithy-go#255, aws/aws-sdk-go-v2#1034, aws/aws-sdk-go-v2#1013
Fixes the SDK's generation of unmarshalers for XML attributes in tags with xml namespaces. Fixes #1013
|
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
GetObjectAcl of S3 always returns an empty grantee type.
Version of AWS SDK for Go?
Version of Go (
go version
)?To Reproduce
result:
Expected behavior
I want to get "CanonicalUser" grantee type.
AWS SDK v1 returns my expected result, but v2 doesn't.
Additional context
Is
types.TypeCanonicaluser
intended name? it should betypes.TypeCanonicalUser
?https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/s3/types#Type
The text was updated successfully, but these errors were encountered: