You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "zjncs (via GitHub)" <gi...@apache.org> on 2026/10/07 08:50:01 UTC

[PR] fix(message): flag server-truncated message bodies and properties in the detail panel [rocketmq-dashboard]

zjncs opened a new pull request, #5638:
URL: https://github.com/apache/rocketmq-dashboard/pull/5638

   ### Problem
   
   `RocketMQMessageProvider` caps the display body at 64 KiB (48 KiB for binary) and limits displayed properties; `MessageRecordVO` carries `bodyTruncated` / `bodyEncoding` / `propertiesTruncated` precisely so the UI can say so.
   
   The message page ignored all three:
   
   - the `MessageRecord` TS interface did not declare them;
   - the detail panel rendered the (possibly partial) body with **no indication** โ€” a user inspecting a large message saw a truncated body and believed it complete.
   
   The DLQ page already surfaces `propertiesTruncated` with a warning line; the message page is the inconsistent one.
   
   ### Fix
   
   - add `bodyEncoding` / `bodyTruncated` / `propertiesTruncated` to the `MessageRecord` TS interface (optional, matching the VO);
   - render a warning line between the body title and the body whenever the server truncated either part (localized via new `messagePage.bodyTruncated` / `messagePage.propertiesTruncated` keys);
   - both flags shown together are joined with `ยท`.
   
   ### Verification (red โ†’ green + mutation)
   
   - New test: a message with both truncation flags renders the warning line on the detail panel (`flags a server-truncated message body and properties on the detail panel`).
   - Mutation (badge + i18n reverted): new test fails **1/15**; with the fix: **15/15 passed** (`MessagePage.test.tsx`).
   
   ### Collision note
   
   11 open PRs touch `message.tsx`; this change is confined to the block between the `topic.messageBody` title (~L946) and the body `Paragraph` (~L955). The nearest occupier hunk is #5231 at L965 (a time-formatter rename three rows above) โ€” disjoint.


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(message): flag server-truncated message bodies and properties in the detail panel [rocketmq-dashboard]

Posted by "github-actions[bot] (via GitHub) via commits" <co...@rocketmq.apache.org>.
github-actions[bot] commented on PR #5638:
URL: https://github.com/apache/rocketmq-dashboard/pull/5638#issuecomment-6810433414

   This pull request has been automatically closed because there has been no activity for 7 days. If you would like to continue working on this, please reopen the PR with updated changes.


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(message): flag server-truncated message bodies and properties in the detail panel [rocketmq-dashboard]

Posted by "github-actions[bot] (via GitHub) via commits" <co...@rocketmq.apache.org>.
github-actions[bot] closed pull request #5638: fix(message): flag server-truncated message bodies and properties in the detail panel
URL: https://github.com/apache/rocketmq-dashboard/pull/5638


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org