You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Matt Pavlovich (Jira)" <ji...@apache.org> on 2025/05/28 14:29:00 UTC
[jira] [Updated] (AMQ-9716) maxMessageSize behavior changed for value -1 (since 5.19.0)
[ https://issues.apache.org/jira/browse/AMQ-9716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Pavlovich updated AMQ-9716:
--------------------------------
Fix Version/s: 6.2.0
5.19.1
6.1.7
> 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: 10m
> 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-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact