iloveeyjafjalla opened a new issue, #6870: URL: https://github.com/apache/rocketmq-dashboard/issues/6870
## Summary The queue browser's message card renders the body it receives as if it were the whole message. When the server cut the body at its display cap, or could not decode it as text and returned it BASE64-encoded, the card says nothing — so a base64 blob or an incomplete body is presented as the message. ## Why - The flags are on the same record the card already uses: `MessageRecord.bodyTruncated` / `bodyEncoding` (`web/src/api/message.ts:13-16`), produced by `RocketMQMessageProvider.toRecordVO` (`displayBody` caps text at 64 KiB and binary at 48 KiB and marks the encoding). - The same component already forwards `propertiesTruncated` to the properties panel right below the body (`QueueBrowser.tsx`), so the omission is this surface's alone: the detail modal warns about both flags for the same payload (`web/src/pages/instance/message.tsx:1068-1085`, `messagePage.bodyTruncatedWarning` / `messagePage.bodyBinaryWarning`), and the AI tool serving the identical fetch declares them as first-class output fields (`server/src/main/resources/tool-catalog/tools/message.yaml`). - No test fed the flags through: `QueueBrowser.test.tsx` asserts the *properties* truncation notice only. ## Impact A user who pulls a message in the 队列 tab sees base64 text or a silently shortened body and cannot tell it apart from a complete message — the warnings that exist for it are one click away, in a modal this card has no path to. ## Reproduction `web/src/components/__tests__/QueueBrowser.test.tsx` → `discloses a truncated or encoded body of a pulled queue message` pulls one message with `bodyTruncated: true, bodyEncoding: 'BASE64'`: ``` Unable to find an element with the text: 消息体超过服务端展示上限,已被截断;此处展示与下载的内容都不完整。 ``` ## Expected The card shows the same two notices the detail modal shows for the same payload. Not a duplicate of the open #5638 / the merged #4870–#4872 work: those cover the *detail modal*, which already warns; this is the queue browser's card, which never did. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
