[
https://issues.apache.org/jira/browse/ARTEMIS-3294?focusedWorklogId=596017&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-596017
]
ASF GitHub Bot logged work on ARTEMIS-3294:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 13/May/21 10:05
Start Date: 13/May/21 10:05
Worklog Time Spent: 10m
Work Description: franz1981 commented on a change in pull request #3577:
URL: https://github.com/apache/activemq-artemis/pull/3577#discussion_r631702256
##########
File path:
artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/openmbean/OpenTypeSupport.java
##########
@@ -293,7 +293,7 @@ protected void init() throws OpenDataException {
if (m.containsProperty(Message.HDR_LARGE_COMPRESSED)) {
rc.put(CompositeDataConstants.TEXT_BODY, "[compressed]");
} else {
- final String text = m.getReadOnlyBodyBuffer().readString();
+ final String text =
m.getReadOnlyBodyBuffer().readNullableSimpleString().toString();
Review comment:
This shouldn't be
```java
final SimpleString nullableText =
m.getReadOnlyBodyBuffer().readNullableSimpleString();
final String text = nullableText == null? null : nullableText.toString();
// ...
```
because of
```java
public static SimpleString readNullableSimpleString(ByteBuf buffer) {
int b = buffer.readByte();
if (b == DataConstants.NULL) {
return null;
}
return readSimpleString(buffer);
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 596017)
Time Spent: 0.5h (was: 20m)
> Error browsing messages with a text body
> ----------------------------------------
>
> Key: ARTEMIS-3294
> URL: https://issues.apache.org/jira/browse/ARTEMIS-3294
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Reporter: Domenico Francesco Bruscino
> Assignee: Domenico Francesco Bruscino
> Priority: Major
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> The web console returns the following error on browsing messages with a text
> body:
> {code:java}
> [hawtio-core] Operation browse(int, int, java.lang.String) failed due to:
> java.lang.IndexOutOfBoundsException : Error reading in simpleString,
> length=510918757 is greater than readableBytes=27
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)