Frun1na opened a new issue, #4664: URL: https://github.com/apache/rocketmq-dashboard/issues/4664
### Before Creating the Bug Report - [x] I found a bug, not just asking a question. ### Apache RocketMQ Dashboard version master (web/src/utils/messagePayloadPreview.ts) ### Which part of the dashboard is this about? Message sending — property payload preview ### Bug description When the same property key appears twice in the send-message form, the payload preview reports an error whose message says the duplicate "will overwrite the earlier values" (重复属性会覆盖前面的值). That is not what happens: `buildMessagePropertiesFromRows` skips later duplicates and keeps the first value, and the pasted `key=value` text parser (`parseMessageProperties`) also never overwrites an existing key. Both input modes are first-value-wins, so the warning describes the opposite of the actual behavior and can mislead users into expecting the last value to win. ### Steps to reproduce 1. Open the message sending page and choose the form mode for properties. 2. Add two rows with the same key, e.g. `traceId=first` and `traceId=second`. 3. The preview reports "重复属性会覆盖前面的值:traceId", but the normalized properties keep `traceId=first`. ### Expected behavior The warning should state that only the first value is kept, matching the actual behavior, e.g. "重复属性仅保留第一个值:traceId". ### Additional context I have opened PR #4663 that corrects the message and adds a test assertion so the copy cannot drift from the behavior again. -- 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]
