-
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
dynamodbattribute panics unmarshaling number into string typedef #3983
Comments
ping @jasdel |
@jasdel @KaibaLopez Are there plans to fix this? |
@jasdel @KaibaLopez This bug was filed almost two months ago. |
Thanks for reaching out @rittneje and reporting this issue. I've been able to reproduce this issue. It looks like the issue that is causing Will investigate if there are other cases this is happening. |
Fixes aws#3983 by correcting the unmarshaler's decoding of AttributeValue N parameter into string aliased type.
Fixes #3983 by correcting the unmarshaler's decoding of AttributeValue N parameter into string aliased type.
|
=== ### Service Client Updates * `service/comprehend`: Updates service API, documentation, and paginators * `service/ec2`: Updates service API, documentation, and paginators * This update adds support for downloading configuration templates using new APIs (GetVpnConnectionDeviceTypes and GetVpnConnectionDeviceSampleConfiguration) and Internet Key Exchange version 2 (IKEv2) parameters for many popular CGW devices. * `service/ecr`: Updates service API and documentation * This release adds additional support for repository replication * `service/iot`: Updates service API and documentation * This release adds support for verifying, viewing and filtering AWS IoT Device Defender detect violations with four verification states. * `service/kafka`: Updates service API ### SDK Bugs * `service/dynamodb/dynamodbattribute`: Fix string alias unmarshal. * Fixes #3983 by correcting the unmarshaler's decoding of AttributeValue number (N) parameter into type that is a string alias.
Release v1.40.46 (2021-09-21) === ### Service Client Updates * `service/comprehend`: Updates service API, documentation, and paginators * `service/ec2`: Updates service API, documentation, and paginators * This update adds support for downloading configuration templates using new APIs (GetVpnConnectionDeviceTypes and GetVpnConnectionDeviceSampleConfiguration) and Internet Key Exchange version 2 (IKEv2) parameters for many popular CGW devices. * `service/ecr`: Updates service API and documentation * This release adds additional support for repository replication * `service/iot`: Updates service API and documentation * This release adds support for verifying, viewing and filtering AWS IoT Device Defender detect violations with four verification states. * `service/kafka`: Updates service API ### SDK Bugs * `service/dynamodb/dynamodbattribute`: Fix string alias unmarshal. * Fixes #3983 by correcting the unmarshaler's decoding of AttributeValue number (N) parameter into type that is a string alias.
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
Unmarshaling an AttributeValue number into a string typedef panics.
aws-sdk-go/service/dynamodb/dynamodbattribute/decode.go
Lines 314 to 319 in 99a46db
This should use
v.SetString(*n)
instead ofv.Set(reflect.ValueOf(*n))
Version of AWS SDK for Go?
v1.38.65
Version of Go (
go version
)?1.15.13
To Reproduce (observed behavior)
This yields "panic: reflect.Set: value of type string is not assignable to type main.Foo"
For reference: https://play.golang.org/p/uTdKemtyvLv
The text was updated successfully, but these errors were encountered: