Welcome to the WSO2 Identity Server source code! For info on working with the WSO2 Identity Server repository and contributing code, click the link below.
When paginating with single attribute filtering in JDBC userstores, without providing a count value, the items per page decreases although there are more records available.
First request;
Total results which meet the filtering conditions: 1000.
Since a count isn't given, the max pagination size of the server (100) is taken, and 100 items per page are displayed - Intended behavior.
Second request;
When startIndex is increased to 50, the items per page is reduced to 51, although there should be 100 as the total results are 1000.
Third request;
Items per page keep decreasing when the startIndex value is increased.
Fourth request;
How to reproduce:
Use a copy of "wso2is-5.12.0-alpha14-SNAPSHOT"
Using POSTMAN send a request with a single filter and a startIndex to a domain using a JDBC userstore.
Try subsequent requests with increasing startIndex values.
Expected behavior:
Even through the startIndex value increases, the results per page should be 100 until it reaches the max limit of 1000.
This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!
Describe the issue:
When paginating with single attribute filtering in JDBC userstores, without providing a count value, the items per page decreases although there are more records available.
First request; Total results which meet the filtering conditions: 1000. Since a count isn't given, the max pagination size of the server (100) is taken, and 100 items per page are displayed - Intended behavior.
Second request; When startIndex is increased to 50, the items per page is reduced to 51, although there should be 100 as the total results are 1000.
Third request; Items per page keep decreasing when the startIndex value is increased.
Fourth request;
How to reproduce:
Expected behavior:
Even through the startIndex value increases, the results per page should be 100 until it reaches the max limit of 1000.
Environment information