[
https://issues.apache.org/jira/browse/CAMEL-17602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-17602.
---------------------------------
Resolution: Fixed
> camel-aws2-sqs - Camel converts Number.Boolean messageAttribute into string
> "1" or "0" instead of Boolean
> ---------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-17602
> URL: https://issues.apache.org/jira/browse/CAMEL-17602
> Project: Camel
> Issue Type: Bug
> Components: camel-aws2
> Affects Versions: 3.13.0, 3.14.1
> Reporter: Mikołaj Matejko
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 3.14.3, 3.16.0
>
> Attachments: image-2022-02-04-12-07-27-282.png,
> image-2022-02-04-12-10-04-707.png
>
>
> Sqs2Producer turns Boolean header into messageAttribute with
> dataType=Number.Boolean, stringValue="0" or stringValue="1"
> !image-2022-02-04-12-07-27-282.png|width=505,height=103!
> However Sqs2Consumer seems to incorrectly convert messageAttribute into
> header while constructing Exchange - instead of turning the "1" -> true, "0"
> -> false it leaves the values as "1", "0" strings. Shouldn't it convert it
> directly to Boolean (true, false)?
> !image-2022-02-04-12-10-04-707.png|width=601,height=148!
--
This message was sent by Atlassian Jira
(v8.20.1#820001)