[ https://issues.apache.org/jira/browse/AMQ-9716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17954609#comment-17954609 ]
ASF subversion and git services commented on AMQ-9716: ------------------------------------------------------ Commit d226bfeb14fdc3efa1d33e35a95882435cc4a6c9 in activemq's branch refs/heads/main from Andrey Litvitski [ https://gitbox.apache.org/repos/asf?p=activemq.git;h=d226bfeb14 ] AMQ-9716: Fix `maxMessageSize=-1` to correctly disable message size limit (#1441) (#1441) > 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 > Assignee: Matt Pavlovich > Priority: Major > Labels: RESTful > Fix For: 6.2.0, 5.19.1, 6.1.7 > > Time Spent: 0.5h > Remaining Estimate: 0h > > 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: issues-unsubscr...@activemq.apache.org For additional commands, e-mail: issues-h...@activemq.apache.org For further information, visit: https://activemq.apache.org/contact