Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

probably the end value is negative number in ServiceController.java #3175

Closed
jiangcaijun opened this issue Jun 24, 2020 · 0 comments
Closed
Assignees
Labels
area/Nacos console Related to Nacos consle kind/bug Category issues or prs related to bug.
Milestone

Comments

@jiangcaijun
Copy link
Contributor

Issue Description

for com.alibaba.nacos.naming.controllers.ServiceController ,
probably:end value is negative number when start is negative

Related code is :

int start = (pageNo - 1) * pageSize;
int end = start + pageSize;

if (start < 0) {
    start = 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/Nacos console Related to Nacos consle kind/bug Category issues or prs related to bug.
Projects
None yet
Development

No branches or pull requests

2 participants