btlqql opened a new issue, #2648:
URL: https://github.com/apache/rocketmq-dashboard/issues/2648

   ### Problem
   
   Native alert rule validation checks the duration and reminder interval 
syntax, but it does not parse the values before persistence. Very large numeric 
values therefore pass the API validation and can overflow while the native 
alert processor converts them to a Duration. The resulting arithmetic exception 
can interrupt processing instead of being reported as an invalid rule.
   
   ### Expected behavior
   
   Native alert rules with duration values that cannot be represented should be 
rejected with the same bad-request response used for other invalid durations, 
before the rule is persisted.
   
   ### Proposed fix
   
   Normalize arithmetic overflows in the shared duration parser to the existing 
invalid-duration business error, validate native duration fields before 
persistence, and add boundary regression tests.


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