RockteMQ-AI commented on issue #4167:
URL: 
https://github.com/apache/rocketmq-dashboard/issues/4167#issuecomment-5587275259

   **Issue Evaluation**
   
   Category: `bug` | Status: **Confirmed**
   
   Verified against 
`server/src/main/java/org/apache/rocketmq/studio/provider/apache/RocketMQMessageProvider.java`:
   
   - `abbreviate()` (line ~775) uses `value.substring(0, maxLength)` — operates 
on UTF-16 `char` indices, not code points.
   - `MAX_PROPERTY_VALUE_CHARS = 1024` (line 86).
   - `hasOversizedProperty()` (line ~768) uses `value.length() > 
MAX_PROPERTY_VALUE_CHARS` — also UTF-16 length, not code point count.
   
   **Note:** The file path in the issue (`MessagePropertyDisplay.java`) does 
not exist; the actual code lives in `RocketMQMessageProvider.java` (methods 
`abbreviate`, `limitProperties`, `hasOversizedProperty`).
   **Root Cause:** `String.substring` and `String.length()` split surrogate 
pairs for supplementary characters (emoji, CJK Extension-B, etc.).
   **Severity:** low-medium — cosmetic data corruption in truncated display 
values.
   
   ---
   *Automated evaluation by github-manager*


-- 
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]

Reply via email to