[
https://issues.apache.org/jira/browse/ARTEMIS-4547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17799511#comment-17799511
]
ASF subversion and git services commented on ARTEMIS-4547:
----------------------------------------------------------
Commit 6cddc7f5fa215768fb8547a0505d44405ff5d033 in activemq-artemis's branch
refs/heads/main from Erwin Dondorp
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=6cddc7f5fa ]
ARTEMIS-4547 properly display empty message
> 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: 40m
> 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)