[ 
https://issues.apache.org/jira/browse/ARTEMIS-3535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17435650#comment-17435650
 ] 

Justin Bertram commented on ARTEMIS-3535:
-----------------------------------------

I am familiar with the REST messaging interface. I'm one of the few folks who 
has actually worked on it.

I reproduced the problem you're seeing using REST, but REST is actually not at 
all related to the underlying problem. The problem is simply to do with bytes 
(i.e. not text) messages and using {{-1}} as the 
{{management-message-attribute-size-limit}}. Using {{-1}} simply truncates the 
data returned. I've sent a PR to address this bug.

You can work-around the issue by specifying a sufficiently large 
{{management-message-attribute-size-limit}} for your use-case. The underlying 
value is an {{Integer}} so the [max 
size|https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Integer.html#MAX_VALUE]
 is {{2147483647}}.



> management-message-attribute-size-limit = -1 does not unlimit
> -------------------------------------------------------------
>
>                 Key: ARTEMIS-3535
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3535
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Web Console
>         Environment: A' Artems 2.19.0
>            Reporter: arne anka
>            Priority: Major
>         Attachments: artemis-rest-2.19.0.war, broken_message.png, broker.xml, 
> limited.jpg, rest.messaging.config.file.xml, test.xml, unlimited.jpg, web.xml
>
>
> With the new option messages are truncated.
> [https://activemq.apache.org/components/artemis/documentation/latest/versions.html]
> states for 2.18.0 that this may be overriden by using
> -1
> as value. But that doesn't work.
> {{broker.xml}}
> {code:xml}
> <address-setting match="#">
> ...
>    
> <management-message-attribute-size-limit>-1</management-message-attribute-size-limit>
> </address-setting>
> {code}
> Text shown is empty.
> Changing -1 to eg 1024 text appears partially.
> Seems -1 does not work as expected.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to