yyqdbngt opened a new pull request, #2057: URL: https://github.com/apache/rocketmq-dashboard/pull/2057
## What is the purpose of the change Fix #2006. AclService.updateUser loaded an existing ACL user, merged editable fields while preserving credentials, and called AclRepository.saveUser. The MyBatis implementation of saveUser performs a second existence check and inserts when the row is absent. If a delete request removed the user after updateUser read it, saveUser re-created the deleted user with the stale credentials. ## Brief changelog - AclRepository: add replaceUser that updates an existing user without ever inserting a missing one (mirrors replaceRule) - MybatisPlusAclRepository: implement replaceUser using the existing row's createdAt - AclService.updateUser: use replaceUser and return 404 when the user no longer exists ## How was this patch verified - Code review: matches the existing replaceRule pattern used for concurrent rule updates - `git diff --check` clean -- 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]
