yyqdbngt opened a new pull request, #2810: URL: https://github.com/apache/rocketmq-dashboard/pull/2810
## Summary - enforce the message endpoint page and page-size bounds in mock mode - reject zero or negative pages and page sizes above 200 instead of applying JavaScript negative slicing - add regression coverage for both invalid cases ## Why Real mode rejects invalid pagination, while mock mode could return unrelated rows for page zero because `Array.slice` interprets negative offsets from the end. ## Testing - `NODE_OPTIONS=--no-experimental-webstorage npm test -- src/services/messageService.test.ts` -- 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]
