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

   ### Problem
   
   The Studio consumer group delete endpoint accepts a raw `Map<String, 
String>` request body and directly calls `request.get("name")`:
   
   - 
`server/src/main/java/org/apache/rocketmq/studio/instance/group/ConsumerGroupController.java`
   
   A request such as `{}` passes controller binding but forwards `null` to 
`MetadataService.deleteConsumerGroup`. That can produce provider-specific 
failures or misleading success/error behavior instead of a consistent 400 
validation response.
   
   This is different from related delete endpoints such as Topic and Instance, 
which already use typed request DTOs with validation.
   
   ### Expected behavior
   
   `POST /api/groups/delete` should reject missing or blank `name` before 
invoking metadata/admin services, and return a structured 400 response.
   
   ### Suggested fix
   
   Add a typed delete request DTO with `@NotBlank(message = "name is 
required")`, update the controller to use `@Valid @RequestBody`, and add 
controller tests for valid and missing-name requests.
   
   ### Scope
   
   RocketMQ Studio / BASE-01 consumer group management request validation.


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