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

   ### Summary
   Require and trim the broker address in the broker config service:
   
   - `getBrokerConfig` and `updateBrokerConfig` reject a blank `brokerAddr` 
with a clear 400 (`brokerAddr is required`) and trim it before any admin call 
or audit detail.
   
   ### Why
   A blank/padded address previously reached 
`admin.getBrokerConfig(...)`/`updateBrokerConfig(...)`, surfacing a 500-style 
broker failure instead of a validation error, and padded addresses produced 
inconsistent audit details.
   
   ### Testing
   - `mvn -f server/pom.xml -Dtest=RocketMQBrokerConfigServiceTest test` 
passes: 4/4 (3 existing + 1 new covering both read and update guards).
   


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