[
https://issues.apache.org/jira/browse/AMQ-9516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17883581#comment-17883581
]
Jean-Baptiste Onofré commented on AMQ-9516:
-------------------------------------------
The content type header (to text/plain) is required to send payload as message
body.
Without content type header, the payload is used for message property.
I did a couple of fixes on the REST Message API. Let me check on 5.18.x branch.
> REST API adds unexpected byte when POSTing some messages
> --------------------------------------------------------
>
> Key: AMQ-9516
> URL: https://issues.apache.org/jira/browse/AMQ-9516
> Project: ActiveMQ Classic
> Issue Type: Bug
> Affects Versions: 5.18.3
> Reporter: Ephemeris Lappis
> Assignee: Jean-Baptiste Onofré
> Priority: Major
> Fix For: 5.18.6
>
>
> When sending messages using the REST API, some payloads are stored with an
> unexpected byte (0x0A) at the end of the text. This can be verified in the
> msg column field when using a JDBC persistence adapter. Sending the same
> messages using a usual JMS (open-wire) connection has never the problem. This
> issue is probably on the REST API's data handling...
> Anyway, most of messages are correctly processed, and this random behavior is
> perhaps depending on the size of the messages : for some of them the text is
> around 170.000 bytes. Short messages seem not to be altered.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact