You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "messere1 (via GitHub)" <gi...@apache.org> on 2026/10/10 05:29:56 UTC
[PR] fix(mock): reject deletions of missing ACL records [rocketmq-dashboard]
messere1 opened a new pull request, #6043:
URL: https://github.com/apache/rocketmq-dashboard/pull/6043
### Which Issue(s) This PR Fixes
- Resubmission of #1928 (closed during the August branch-rebase sweep, with an invitation to resubmit against the current branch). Original report: #1927, closed as not planned — the defect is still present on the current `rocketmq-studio` tip.
### Brief Description
In mock mode, `deleteAclRule()` / `deleteAclUser()` treated a missing record as **success** (no splice, silent return), while the server answers `404 ACL rule not found: <id>` / `404 ACL user not found: <id>` for the same case (`AclService.deleteRule` / `deleteUser`). Stale rows in the mock store therefore produced false success feedback that the real backend never gives.
Align the mock with the server contract — throw for unknown ids with the same message the server uses — and verify failed deletes leave both mock collections unchanged.
### How Did You Test This Change?
```text
$ cd web && npx vitest run src/services/aclService.test.ts
Test Files 1 passed (1)
Tests 9 passed (9)
$ npx eslint src/services/aclService.ts src/services/aclService.test.ts # clean
```
### Checklist
- [x] One coherent change; unrelated modifications are not bundled in
- [x] Commit subject follows Conventional Commits
- [x] Tests added or updated for non-trivial changes
- [x] New UI text has both Chinese and English entries under `web/src/i18n/` (no new UI text)
- [x] Architecture constraints stay green (frontend mock layer only)
- [x] New source files carry the ASF license header (no new files)
- [x] Documentation touched where behaviour changed (mock now matches the server's 404 contract)
--
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(mock): reject deletions of missing ACL records [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins commented on PR #6043:
URL: https://github.com/apache/rocketmq-dashboard/pull/6043#issuecomment-6119807049
Thanks — this is merged, as part of [`f4c3f04c1`](https://github.com/apache/rocketmq-dashboard/commit/f4c3f04c1f53ada7829824867850fce21b4efaa2) on `rocketmq-studio`.
Your change went in together with #6044 and #6042 — all yours, all in the same area — so we folded them into a single commit instead of landing several near-identical entries for the same subsystem. Nothing was dropped.
The commit message calls this one out explicitly:
> #6043 `web/src/services/aclService.ts:168` and `:213` splice only when the index is found and
Closing as folded, not rejected.
--
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(mock): reject deletions of missing ACL records [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #6043: fix(mock): reject deletions of missing ACL records
URL: https://github.com/apache/rocketmq-dashboard/pull/6043
--
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