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

   **Issue Evaluation**
   
   Category: `bug` | Status: **Confirmed**
   
   The reported issue is valid. The permission decoding logic uses exact 
integer comparisons (6, 4, 2) which misses the INHERIT bit (1). READ|INHERIT 
(5) and WRITE|INHERIT (3) are indeed misreported as read-write.
   
   **Root Cause:** The `QueueData` permission mapping does not use bitwise 
checks; it relies on exact matches that exclude the INHERIT flag.
   **Impact:** Topic route permissions are incorrectly displayed in Studio when 
INHERIT is combined with READ or WRITE.
   **Severity:** Medium — affects permission visibility but not actual 
enforcement (broker-side enforcement is correct).
   
   **Proposed fix:** Replace exact-match comparisons with bitwise checks: 
readability = (perm & 4) != 0, writability = (perm & 2) != 0. Map 4/5→RO, 
2/3→WO, 6/7→RW.
   
   An automated fix proposal can be generated. Reply `/approve` to proceed with 
PR generation.
   
   ---
   *Automated evaluation by RockteMQ-AI*


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