Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@jiangcaijun

Description

@jiangcaijun

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;
}

Metadata

Metadata

Assignees

Labels

area/Nacos consoleRelated to Nacos conslekind/bugCategory issues or prs related to bug.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions