Skip to content
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

Number MessageAttribute data type for timestamp is incompatible with older versions of Spring Cloud #931

Closed
Adita9 opened this issue Oct 30, 2023 · 1 comment

Comments

@Adita9
Copy link

Adita9 commented Oct 30, 2023

Hello!

I have the same issue as @angeloarenas in #791. My publisher was upgraded to spring-cloud-aws-starter-sns 3.0.2 and my consumer is on spring-cloud-starter-aws-messaging 2.6.6 RELEASE.

Message attribute:
attributeName: timestamp
attributeType: number
attributeValue: 1698230823215

The application throws a StringIndexOutOfBoundsException when it tried to parse the attributeType in line 90 - org.springframework.cloud.aws.messaging.support.converter.NotificationRequestConverter#getNumberValue. (spring-cloud-starter-aws-messaging 2.6.6 RELEASE),

I also tried the RawMessageDelivery - it fails in org.springframework.cloud.aws.messaging.core.QueueMessageUtils#getNumberValue

Do you know any workarounds?

Thank you

@maciejwalkowiak
Copy link
Contributor

Closing as a duplicate of #791, but fix coming in #932

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants