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

   `web/src/services/consumerService.ts` (branch rocketmq-studio) — 
`listConsumerGroupPage` (lines ~118-134) mock validates nothing:
   
   - **page 0 / negative** becomes a negative JS slice index (`from = 
Math.min((page-1)*pageSize, len)`) — `page=-1` returns rows sliced from the END 
of the list (wrong data); `page: 0` returns `{items: [], total: 10, page: 0}`
   - **pageSize 101** silently returns a full page of items
   
   The backend rejects all of these with 400: 
`MetadataService.validatePagination` (applied to `/groups/page` at line 395) 
throws `"page must be greater than zero"` / `"pageSize must be between 1 and 
100"` (`MAX_PAGE_SIZE=100`). Same family as merged #5498 and open #5593 (DLQ 
mocks) — this is the consumer-groups branch of the same contract.
   
   main @ rocketmq-studio tip.


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