unbridled-41 opened a new issue, #6002:
URL: https://github.com/apache/rocketmq-dashboard/issues/6002

   ### Studio Version
   branch: `rocketmq-studio` @ `7e7aa344`
   ### Runtime Environment
   Backend tests: `cd server && mvn -o -B -ntp test 
-Dtest='AlertSilenceServiceTest'`.
   ### Describe the Bug
   `AlertSilenceService.create` bounds the reason to its 512-character column 
(and the labels) but writes `instanceId` into `instance_id VARCHAR(128)` 
unbounded. A longer value reached the database, the rejection arrived as an 
unmapped DataIntegrityViolationException, and the API answered 500 - so an 
operator setting up a maintenance window saw a failure with no reason and could 
believe the window existed.
   ### Steps to Reproduce
   `POST /api/system-alerts/silences` with a 129-character `instanceId`.
   ### What Did You Expect to See?
   A 400 naming the limit, before any write.
   ### What Did You See Instead?
   A generic 500 and no window.
   ### Impact
   A maintenance window silently does not exist while its creation reports an 
opaque failure.
   ### Acceptance Criteria
   The field is bounded like the reason next to it, with a regression test.
   **Corresponding PR:** #ISSUEPR#
   


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