You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Erwin Dondorp (Jira)" <ji...@apache.org> on 2021/09/09 14:23:00 UTC

[jira] [Created] (ARTEMIS-3466) byte arrays are show with negative hex numbers

Erwin Dondorp created ARTEMIS-3466:
--------------------------------------

             Summary: byte arrays are show with negative hex numbers
                 Key: ARTEMIS-3466
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3466
             Project: ActiveMQ Artemis
          Issue Type: Bug
          Components: Web Console
    Affects Versions: 2.18.0
            Reporter: Erwin Dondorp
         Attachments: image-2021-09-09-15-50-18-014.png

add messages to a queue that are not text messages.
 view one of those message by using "Browse queue" and then selecting "show" on an specific message.
 the console will use a hex-dump to show the message content.
in there, bytes with a value >= 128 are treated as negative numbers.

but byte arrays are typically represented as unsigned numbers, and the comment "hex and must be 2 digit so they space out evenly" in `browse,js` also seems to indicate that that was intended.

 

!image-2021-09-09-15-50-18-014.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)