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

   ## Summary
   - translate duration arithmetic overflow into a 400 business error
   - cover overflowing units and compound duration addition
   
   ## Why
   Syntactically valid but extremely large duration values could escape request 
validation and fail with an uncaught arithmetic exception during parsing.
   
   ## Testing
   - `JAVA_HOME=/opt/homebrew/opt/openjdk@21 
PATH=/opt/homebrew/opt/openjdk@21/bin:$PATH mvn -f server/pom.xml 
-Dtest=AlertRuleDurationTest test`


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