[ 
https://issues.apache.org/jira/browse/CAMEL-26269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on CAMEL-26269 started by Andrea Cosentino.
------------------------------------------------
> camel-huaweicloud-smn - a Map or POJO body is published as its toString, and 
> the message id property is spelled CamelHwCloudSmnMesssageId
> -----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-26269
>                 URL: https://issues.apache.org/jira/browse/CAMEL-26269
>             Project: Camel
>          Issue Type: Bug
>            Reporter: Claus Ibsen
>            Assignee: Andrea Cosentino
>            Priority: Minor
>             Fix For: 4.24.0
>
>
> Found while adding the catalog body types of hwcloud-smn (CAMEL-24961, PR 
> #28406).
> h4. 1. A Map or POJO body is published as its toString
> {{SimpleNotificationProducer}} (main 2a465aa4814c, lines 109 and 123) 
> publishes {{getBody(String.class)}}, so a Map or POJO is sent as 
> {{{key=value}}} without an error. Checked on 4.24.0-SNAPSHOT with a mock SDK 
> client set on the endpoint.
> Proposed: send a Map or POJO as JSON (or reject it).
> h4. 2. The message id property has a typo
> {{SmnProperties.SERVICE_MESSAGE_ID}} (line 30) is 
> {{CamelHwCloudSmnMesssageId}}, with three s. Read in the code.
> Proposed: add {{CamelHwCloudSmnMessageId}}, keep setting the old name for a 
> while, and note it in the upgrade guide.
> _Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to