-
-
Notifications
You must be signed in to change notification settings - Fork 310
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
Can't add AWSTraceHeader as system attribute because is replaced with "null" #1262
Comments
@tomazfernandes could you take a look? |
Hi @maciejwalkowiak @tomazfernandes any news on this? |
@acomofcg not yet. If you would like to contribute fix, PRs welcome! |
@acomofcg, thanks for bringing this up. I wonder why this fails for this particular attribute and not the other ones? Thanks |
Hi @tomazfernandes, as far as I understand, the tracing header is the only attribute allowed to be used among system attributes, which is not mixed with the "normal" message attributes. This is why Thanks for your help. |
Hi @tomazfernandes @maciejwalkowiak I opened a PR (#1287) for fixing the problem. Please let me know if the tests are enough Thanks |
Type: Bug
Component:
"SQS"
Describe the bug
In Spring Cloud 3.1.1 I can't send the MessageSystemAttribute
AWSTraceHeader
: when setting the attribute, in the system attribute map ofsoftware.amazon.awssdk.services.sqs.model.Message
object, the key is replaced with"null"
string when converted toSendMessageRequest
, and SQS return 400.Debugging the code, I found that the problem is the
SqsTemplate
class when convertingMessageSystemAttributeName
intoMessageSystemAttributeNameForSends
, methodmapMessageSystemAttributes
at line 457.Possible fixes:
replace
with
or
What happening now is that the system attribute sent is
instead of
which is rejected by AWS.
The text was updated successfully, but these errors were encountered: