X-LightYear opened a new issue, #7313:
URL: https://github.com/apache/rocketmq-dashboard/issues/7313

   ### Problem`n`nrmq.broker.describe rejects a valid broker when brokerName 
contains surrounding whitespace.`n`n### Reproduction`n`nConfigure cluster rmq-a 
with broker broker-a, then call rmq.broker.describe with brokerName set to 
space-broker-a-space.`n`n### Expected behavior`n`nResolve the broker using the 
normalized name broker-a, consistently with existing cluster-name 
normalization.`n`n### Actual behavior`n`nThe tool returns 404 Broker not found 
and does not call the provider.`n`n### Root cause`n`nBrokerDescribeToolHandler 
compares and forwards brokerName unchanged while cluster resolution normalizes 
its input.`n`n### Fix`n`nTrim brokerName before the membership check and 
provider lookup.`n`n### Testing`n`nThe focused regression fails before the fix 
and passes after it; the related handler suite and checkstyle pass.


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