-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Cannot create S3 bucket inventory with SSE-S3 encryption #2015
Comments
Thanks for reporting this issue @danielwhite I think you're correct the SDK's XML marshaler is intentionally excluding elements from the XML document if that structure does not have nested values. I know the SDK's JSON marshaler are able to handle this case to marshaler empty objects. PR #1998 adds additional tests from XML marshaling that we can use for validating this functionality. The SDK's xml marshaler is pretty fragile, additional tests need to be included with the fix for this. |
…tion is enabled This prevents importing a resource that has the feature enabled so that future updates don't accidentally stomp on the data. The SDK currently fails to marshal this option correctly in a create/update request. The risk is minimal since the create/update request fails anyway, but this will avoid a user being surprised by a failed update _after_ they've imported it into their state. See: aws/aws-sdk-go#2015
Updates the S3 Upload Manager's default behavior for MaxNumParts, and ensurs that the Uploader.MaxNumPart's member value is initialized properly if the type was created via struct initialization instead of using the `NewUploader` function. Fix aws#2015
Fixes the SDK's marshaling of types without members. This corrects the issue where the SDK would not marshal an XML tag for a type, if that type did not have any exported members. Fix aws#2015
Fixes the SDK's marshaling of types without members. This corrects the issue where the SDK would not marshal an XML tag for a type, if that type did not have any exported members. Fix aws#2015
Fixes the SDK's marshaling of types without members. This corrects the issue where the SDK would not marshal an XML tag for a type, if that type did not have any exported members. Fix #2015
Version of AWS SDK for Go?
Version of Go (
go version
)?What issue did you see?
The SDK produces a malformed request when configuring S3 bucket inventory where the destination is using SSE-S3 encryption.
Given the following
s3.PutBucketInventoryConfigurationInput
:The operation produces the following error:
At first glance, the main offender seems to be a check in
xmlutil.buildStruct
to prevent marshaling of structs where no child fields have been marshaled.aws-sdk-go/private/protocol/xml/xmlutil/build.go
Lines 156 to 158 in 0625b32
Steps to reproduce
The following will produce the error described above:
The text was updated successfully, but these errors were encountered: