Bruno Köferli created AMQ-9716:
----------------------------------

             Summary: maxMessageSize behavior changed for value -1 (since 
5.19.0)
                 Key: AMQ-9716
                 URL: https://issues.apache.org/jira/browse/AMQ-9716
             Project: ActiveMQ Classic
          Issue Type: Bug
          Components: Broker, Connector
    Affects Versions: 5.19.0
            Reporter: Bruno Köferli


In RESTful API the behavior of maxMessageSize with value -1 has changed/is 
buggy. As documented the message size limit should be disabled with this value. 
But since version 5.19.0 this behavior does not work anymore.

The bug was introduced with commit [[AMQ-9519] Remove runtime usage of 
commons-io -  apache/activemq@8c12033 -  
GitHub|https://github.com/apache/activemq/commit/8c12033261e097503851b30fbf6a8ce302e6f616].
Little side note: Also with this commit a hard coded limit of Integer.MAX_VALUE 
was introduced, which is not documented. I guess that this limit is not really 
an issue for anyone - at least not for us.

A fix must be applied in two places:
 * 
[https://github.com/apache/activemq/blob/main/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java#L362]
 * 
[https://github.com/apache/activemq/blob/main/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java#L403]



--
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


Reply via email to