[ 
https://issues.apache.org/jira/browse/ARTEMIS-4547?focusedWorklogId=896701&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-896701
 ]

ASF GitHub Bot logged work on ARTEMIS-4547:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 21/Dec/23 12:40
            Start Date: 21/Dec/23 12:40
    Worklog Time Spent: 10m 
      Work Description: erwindon commented on PR #4723:
URL: 
https://github.com/apache/activemq-artemis/pull/4723#issuecomment-1866180078

   before:
   
![image](https://github.com/apache/activemq-artemis/assets/3663742/0e0c2c6d-1943-4b3e-895c-6b53d7919665)




Issue Time Tracking
-------------------

    Worklog Id:     (was: 896701)
    Time Spent: 20m  (was: 10m)

> 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: 20m
>  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)

Reply via email to