tju-yxq opened a new issue, #1826:
URL: https://github.com/apache/rocketmq-dashboard/issues/1826

   K8sCertService.createCert and updateCert call 
CertType.valueOf(command.getType()) without catching IllegalArgumentException. 
If the user passes an invalid cert type (e.g. 'INVALID'), the server returns 
HTTP 500 with a stack trace instead of a clean HTTP 400 error. Fix: wrap 
CertType.valueOf in a try-catch and throw BusinessException(400).


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