yyqdbngt opened a new pull request, #3082: URL: https://github.com/apache/rocketmq-dashboard/pull/3082
### Summary Normalize optional filters in the message/trace query-history service so padded or mixed-case callers cannot silently scope to the wrong data: - `listMessageQueries`, `listTraceQueries` and `summarize` now trim `clusterId` (and the message-list `queryType`) before building `eq` predicates, and trim the `search` term before LIKE escaping — all at the single service choke point instead of relying on each controller path. - `normalizeSearch` / `normalizeOptional` are package-private helpers covered by direct unit tests. ### Why Controller paths pass these parameters inconsistently (one endpoint trims clusterId, another does not); a trailing space in `clusterId` previously turned the equality predicate into a no-match and returned an empty history/summary for an existing cluster. ### Testing - `mvn -f server/pom.xml -Dtest=QueryHistoryServiceTest test` passes: 7/7 (6 existing + 1 new covering both helpers). -- 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]
