yyqdbngt opened a new pull request, #3085: URL: https://github.com/apache/rocketmq-dashboard/pull/3085
### Summary Trim the Topic parameter before any RocketMQ message lookup in the Apache message provider: - The private `queryMessages` overload (the single choke point for topic/message-key/msgId queries) now normalizes `topic` via the new package-private `normalizeTopic` helper (blank → null, otherwise trimmed) before branching into `viewMessage` / key / topic-scan lookups. ### Why A topic typed or pasted with surrounding whitespace previously flowed into `queryMessage`/`viewMessage` and produced silent empty results or confusing broker-side failures, since RocketMQ topic names never contain surrounding spaces. ### Testing - `mvn -f server/pom.xml -Dtest=RocketMQMessageProviderTest test` passes: 32/32 (31 existing + 1 new covering the helper). -- 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]
