Erwin Dondorp created ARTEMIS-4547:
--------------------------------------
Summary: 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
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.
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)