yyqdbngt opened a new pull request, #3081: URL: https://github.com/apache/rocketmq-dashboard/pull/3081
### Summary Fix message/trace query-history search so whitespace-padded terms match rows: - `listMessageQueries` / `listTraceQueries` now normalize the user-supplied `search` term (`trim()`, null-safe) before building the LIKE predicates, so `" orders "` matches rows whose stored topic/msgId/key/queriedBy values have no surrounding whitespace. - The escape/trim helpers are extracted as package-private (`normalizeSearch`, `escapeLike`) for direct unit testing. ### Why The search box passes the raw input; a leading/trailing space (easy to produce by accident or by paste) previously turned the LIKE pattern into `% orders %`, which silently returned zero results even though matching rows existed. ### Testing - `mvn -f server/pom.xml -Dtest=QueryHistoryServiceTest test` passes: 8/8 (6 existing + 2 new tests covering trim/normalize and wildcard escaping). -- 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]
