[
https://issues.apache.org/jira/browse/AMQ-8611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17762024#comment-17762024
]
Nicolas Filotto commented on AMQ-8611:
--------------------------------------
I could reproduce the problem and confirm what [~douglasawh] suggested, I
submitted 2 PRs to describe how to configure it:
* https://github.com/apache/activemq-website/pull/112
* https://github.com/apache/activemq/pull/1047
Simply set the init param {{maxMessageSize}} to {{-1}} to disable the feature,
like in the following example:
{code:xml}
<servlet>
<servlet-name>MessageServlet</servlet-name>
<servlet-class>org.apache.activemq.web.MessageServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<async-supported>true</async-supported>
<init-param>
<param-name>maxMessageSize</param-name>
<param-value>-1</param-value>
</init-param>
</servlet>
{code}
> Long messages over REST API HTTP Post are truncated
> ---------------------------------------------------
>
> Key: AMQ-8611
> URL: https://issues.apache.org/jira/browse/AMQ-8611
> Project: ActiveMQ
> Issue Type: Bug
> Affects Versions: 5.17.1
> Reporter: Christian Scherrer
> Priority: Major
> Attachments: image-2022-05-30-10-43-55-117.png,
> image-2022-05-30-10-53-40-964.png
>
>
> Sending a HTTP Post Request via Postman with a message longer than 100'000
> characters (marking the end of the message with END):
> !image-2022-05-30-10-43-55-117.png!
> Sending a HTTP Get request, only the first 100'000 characters of the message
> gets returned (checking length with notepad++)
> !image-2022-05-30-10-53-40-964.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)