Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17602

camel-aws2-sqs - Camel converts Number.Boolean messageAttribute into string "1" or "0" instead of Boolean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.13.0, 3.14.1
    • 3.14.3, 3.16.0
    • camel-aws2
    • None
    • Unknown

    Description

      Sqs2Producer turns Boolean header into messageAttribute with dataType=Number.Boolean, stringValue="0" or stringValue="1"

      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)?

      Attachments

        1. image-2022-02-04-12-10-04-707.png
          222 kB
          Mikołaj Matejko
        2. image-2022-02-04-12-07-27-282.png
          85 kB
          Mikołaj Matejko

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              matejkom Mikołaj Matejko
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: