wso2 / product-is

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.
http://wso2.github.io/
Apache License 2.0
748 stars 728 forks source link

Error in processing of count and startIndex in POST request #5362

Closed somindatommy closed 1 week ago

somindatommy commented 5 years ago

In SCIM pagination is defined by two parameters such as startIndex, count. According to the specification [1] when the count parameter is specified as zero, the service provider should empty result set. But currently, it is returning the max number of results specified in IS.

Similar as issue: https://github.com/wso2/product-is/issues/5106 which is already fixed. Sample request [2] should not retrieve any users. But in the current IS version, users are retrieved.

[1] - https://tools.ietf.org/html/rfc7644#section-3.4.2.4

[2] - curl -v -k --user admin:admin --data '{"schemas": ["urn:ietf:params:scim:api:messages:2.0:SearchRequest"],"filter":userName sw a,"domain":"PRIMARY","startIndex": 1,"count": 0}' --header "Content-Type:application/scim+json" 'https://localhost:9443/scim2/Users/.search'

isharak commented 1 week ago

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!