GetRetainedMessageResult getPayload documentation says that it returns a byte buffer that is base64 encoded, but it is in fact not #3651
Labels
documentation
In code. For issues with public website, move to https://github.com/aws-amplify/docs
feature-request
Request a new feature
pending-maintainer-response
Issue is pending response from an Amplify team member
GetRetainedMessageResult.getPayload
's Javadoc says that it is a base64 encoded byte buffer but there is aByteBufferJsonUnmarshaller
which in it's implementation decodes the incoming base64 byte buffer and returns the decoded byte buffer.https://github.com/aws-amplify/aws-sdk-android/blob/225234b3f75a26ce50613ee2f7b46e0508000f28/aws-android-sdk-iot/src/main/java/com/amazonaws/services/iotdata/model/GetRetainedMessageResult.java#L103C1-L114C6
Wasn't sure if the link above would render correctly so here is the code I am talking about
I think either modifying the documentation to reflect that this isn't a Base64 encoded buffer would work or perhaps creating and using a
Base64EncodedByteBufferJsonUnmarshaller
if we want the documentation to be the same as it is currently.The text was updated successfully, but these errors were encountered: