Skip to content

Commit

Permalink
Issue 55 (#56)
Browse files Browse the repository at this point in the history
* Fix issue#55 when reading MessageS3Pointer
  • Loading branch information
adam-aws authored Oct 6, 2020
1 parent 7a79ecf commit 2568cec
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ public ReceiveMessageResult receiveMessage(ReceiveMessageRequest receiveMessageR
Optional<String> largePayloadAttributeName = getReservedAttributeNameIfPresent(message.getMessageAttributes());
if (largePayloadAttributeName.isPresent()) {
String largeMessagePointer = message.getBody();
largeMessagePointer = largeMessagePointer.replace("com.amazon.sqs.javamessaging.MessageS3Pointer", "software.amazon.payloadoffloading.PayloadS3Pointer");

message.setBody(payloadStore.getOriginalPayload(largeMessagePointer));

Expand Down

0 comments on commit 2568cec

Please sign in to comment.