jokerzsd opened a new pull request, #4227:
URL: https://github.com/apache/rocketmq-dashboard/pull/4227

   ## Summary
   
   Fix the Studio user search treating `_` and `%` in the query as SQL LIKE 
wildcards.
   
   ## Problem
   
   `AuthService.listUsers` passed the raw username search into MyBatis-Plus 
`like("username", ...)` without escaping. A search for `admin_` matched 
`adminX` and `admin%` matched any suffix. Other search paths (e.g. message 
query history) already escape `\`, `%` and `_`.
   
   ## Fix
   
   Escape `\`, `%` and `_` before building the LIKE condition, matching the 
existing `escapeLike` behavior.
   
   ## Test plan
   
   Added a focused `escapeLike` regression test. `mvn test 
-Dtest=AuthServiceTest` — 17 tests, 0 failures.
   
   Fixes #4223


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