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

   ### Summary
   Guard the connection-test command:
   
   - `testConnection` now rejects a null command or a blank/absent 
`namesrvAddr` with a clear 400 (`namesrvAddr is required`) instead of 
dereferencing and surfacing an internal error.
   
   ### Why
   The action previously called `command.getNamesrvAddr().trim()` 
unconditionally, so an empty request (or blank address) produced an NPE-style 
failure instead of a validation message.
   
   ### Testing
   - `mvn -f server/pom.xml -Dtest=ClusterConnectionServiceTest test` passes: 
2/2 (existing suite; behavior unchanged for valid input).
   


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