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

   ## Summary
   - route the paged alert query's level filter through the existing 
`normalizeLevel` helper so whitespace is trimmed and the value lowercased with 
the root locale, matching the unfiltered listing path
   
   ## Why
   `alertQuery` lowercased the level but did not trim it, while the sibling 
listing query already used `normalizeLevel`. A caller sending `" ERROR "` (for 
example from a URL-encoded form or an over-eager client) produced a query for 
the literal padded value, so the page silently came back empty instead of 
matching the stored `error` rows.
   
   ## Testing
   - `mvn -q -f server/pom.xml -Dtest=MybatisPlusAlertRepositoryTest test` — 
Tests run: 17, Failures: 0, Errors: 0 (includes new 
`findAlertsShouldTrimLevelFilterWhitespaceTest`)
   


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