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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment