You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "btlqql (via GitHub)" <gi...@apache.org> on 2026/08/14 06:31:54 UTC
[I] Tencent ACL partial updates reject role ids and reset omitted permissions [rocketmq-dashboard]
btlqql opened a new issue, #2185:
URL: https://github.com/apache/rocketmq-dashboard/issues/2185
### What happened?
Tencent ACL updates are routed from `UpdateAclUserDTO`, where only `id` is required and permission fields are nullable for partial updates. `TencentAclService.updateUser()` instead requires `username`, uses it as the role identifier, and converts every omitted permission to `true`.
This causes two failures:
- a valid update such as `{id, permRead:false, permWrite:true}` is rejected because `username` is absent;
- providing a username while omitting one permission silently enables that permission instead of preserving its current value.
### Expected behavior
Use the required role id when no replacement username is supplied, and preserve each existing Tencent role permission when that field is omitted from the partial update.
### Reproduction
Update an existing Tencent role using only its `id`, or omit either `permRead` or `permWrite`. The current backend rejects the first request and resets omitted permission values to true in the second.
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Tencent ACL partial updates reject role ids and reset omitted permissions [rocketmq-dashboard]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #2185: Tencent ACL partial updates reject role ids and reset omitted permissions
URL: https://github.com/apache/rocketmq-dashboard/issues/2185
--
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: [I] Tencent ACL partial updates reject role ids and reset omitted permissions [rocketmq-dashboard]
Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #2185:
URL: https://github.com/apache/rocketmq-dashboard/issues/2185#issuecomment-5292617371
**Issue Evaluation**
Category: `type/bug` | Status: **Confirmed**
The Tencent ACL partial update logic has two distinct bugs: (1) requiring `username` when `id` should suffice as the role identifier, and (2) converting omitted nullable permission fields to `true` instead of preserving existing values.
**Root Cause:** `TencentAclService.updateUser()` uses `username` as the role key and applies `true` as default for null permission fields instead of fetching current values.
**Impact:** Partial ACL updates either fail validation or silently enable permissions the user intended to leave unchanged.
**Severity:** medium
Suggested fix: Fall back to role id when username is absent, and fetch existing permissions before merging partial updates.
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Tencent ACL partial updates reject role ids and reset omitted permissions [rocketmq-dashboard]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #2185:
URL: https://github.com/apache/rocketmq-dashboard/issues/2185#issuecomment-5376660157
This issue has been automatically closed because there has been no activity for 7 days. If you believe this issue is still relevant, please reopen it with updated information.
--
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