You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "btlqql (via GitHub)" <gi...@apache.org> on 2026/08/25 04:34:19 UTC
[PR] fix(acl): prevent Tencent rule page overflow [rocketmq-dashboard]
btlqql opened a new pull request, #2562:
URL: https://github.com/apache/rocketmq-dashboard/pull/2562
## Summary
- use the shared long-safe pagination offset for in-memory Tencent ACL rules
- return an empty page when the requested offset is beyond the available rules
- cover `Integer.MAX_VALUE` page input with the maximum supported page size
## Why
The previous `(page - 1) * pageSize` calculation used `int` arithmetic. Large but valid page values overflowed to a negative index and caused `subList` to fail instead of returning the normal empty-page response.
## Validation
- `mvn -Dtest=AclServiceTest test`
- Maven Checkstyle (0 violations)
- `git diff --check`
Closes #2558.
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(acl): prevent Tencent rule page overflow [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins merged PR #2562:
URL: https://github.com/apache/rocketmq-dashboard/pull/2562
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org