Aias00 opened a new issue, #6691:
URL: https://github.com/apache/shenyu/issues/6691
- severity: Medium
- files:
`shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/DataPermissionServiceImpl.java:168,200`;
`shenyu-admin/src/main/resources/mappers/selector-sqlmap.xml:166-185` (count:
`selector_name = #{name}`) vs `:107-135` (list: `selector_name LIKE`);
`shenyu-admin/src/main/resources/mappers/rule-sqlmap.xml:113-131` (count:
`rule_name = #{name}`) vs `:74-94` (list: `rule_name LIKE`)
- description: `listSelectorsByPage`/`listRulesByPage` call `countByQuery`
for the total and `selectByQuery` for the page rows. The count statements
filter `name` with exact `=`, while the list statements filter the same `name`
with leading-wildcard `LIKE '%name%'`. The count and row set describe different
result sets, so `CommonPager` reports an inconsistent total.
- impact: Broken pagination metadata on the data-permission assignment
screens whenever a name keyword is entered.
- suggested_fix: Make `countByQuery` use the same `LIKE` predicate as
`selectByQuery`.
- confidence: High
- related_existing: none. PERF-40 covers the correlated-exists +
leading-wildcard LIKE performance aspect of `selectByCondition`, not this
count/list predicate divergence.
---
_Identified during the 2026-08-02 deep re-scan; full list in
[`docs/scan2-2026-08-02/06-medium-tiers.md`](docs/scan2-2026-08-02/06-medium-tiers.md)._
--
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]