[
https://issues.apache.org/jira/browse/ARTEMIS-4547?focusedWorklogId=896703&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-896703
]
ASF GitHub Bot logged work on ARTEMIS-4547:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 21/Dec/23 12:44
Start Date: 21/Dec/23 12:44
Worklog Time Spent: 10m
Work Description: erwindon commented on PR #4723:
URL:
https://github.com/apache/activemq-artemis/pull/4723#issuecomment-1866184959
after:

Issue Time Tracking
-------------------
Worklog Id: (was: 896703)
Time Spent: 0.5h (was: 20m)
> empty message shows "Unsupported message body type which cannot be displayed
> by hawtio"
> ---------------------------------------------------------------------------------------
>
> Key: ARTEMIS-4547
> URL: https://issues.apache.org/jira/browse/ARTEMIS-4547
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Components: Web Console
> Affects Versions: 2.31.2
> Reporter: Erwin Dondorp
> Priority: Minor
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> When an empty message is sent and it is viewed in the web console, there the
> error message "Unsupported message body type which cannot be displayed by
> hawtio" is shown.
> This includes empty messages sent from the console itself.
> I think the following will solve the problem:
> {code}
> ---
> a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/browse.js
> +++
> b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/browse.js
> @@ -757,7 +757,7 @@ var Artemis;
> */
> function createBodyText(message) {
> Artemis.log.debug("loading message:" + message);
> - if (message.text) {
> + if (message.text !== undefined) {
> var body = message.text;
> var lenTxt = "" + body.length;
> message.textMode = "text (" + lenTxt + " chars)";
> {code}
> but I need to test it before I submit the PR
--
This message was sent by Atlassian Jira
(v8.20.10#820010)