krashouk opened a new issue, #1887: URL: https://github.com/apache/rocketmq-dashboard/issues/1887
## 问题描述 `DlqMessageServiceImpl#queryDlqMessageByPage` 在 DLQ Topic 不存在的异常分支中,直接把前端的一基 `pageNum` 传给 Spring Data 的零基 `PageRequest.of`。请求第一页时响应的 `page.number` 因此为 1,前端再次加一后显示成第 2 页。 ## 复现步骤 1. 查询一个不存在的 DLQ Topic,并传入 `pageNum=1&pageSize=10`。 2. 路由检查抛出 Topic 不存在异常。 3. 观察空结果响应中的 `page.number` 为 1。 ## 预期行为 空结果分支与正常消息分页使用相同的一基到零基转换,请求第一页应返回 `page.number=0`,并保留请求的页大小。 ## 环境 - 分支:`master` - 基线:`770822bbc812bfd0c2a94aa0128ab6f59b50d076` - JDK:17 ## 建议修复方向 复用现有 `MessageQueryByPage#page` 的页码规范化逻辑,并为 Topic 不存在路径增加回归断言。 -- 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]
