yx9o opened a new issue, #574: URL: https://github.com/apache/rocketmq-dashboard/issues/574
## Problem `POST /api/alert-rules/update` saves requests without checking whether the required `id` is present or belongs to an existing rule. A missing `id` results in HTTP 500, while a blank or unknown `id` is inserted as a new rule and the update returns success. ## Expected behavior - Reject null or blank rule IDs with HTTP 400. - Reject unknown rule IDs with HTTP 404. - Prevent invalid updates from creating new rules. - Preserve normal updates for existing rules. ## Proposed fix Validate the rule ID before modifying the repository, atomically replace only existing entries, and add service and repository 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]
