From 281b63c6b0fab00969ee664055dfc421dd923a80 Mon Sep 17 00:00:00 2001 From: sandushi Date: Wed, 31 Jul 2024 14:05:34 +0530 Subject: [PATCH] Add a new check for maximum items per page param --- .../wso2/carbon/identity/scim2/common/impl/SCIMUserManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMUserManager.java b/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMUserManager.java index 18e10841..4ff9fa4a 100644 --- a/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMUserManager.java +++ b/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMUserManager.java @@ -6451,7 +6451,7 @@ private String maskIfRequired(String value) { private int validateCountParameter(Integer count) { int maximumItemsPerPage = IdentityUtil.getMaximumItemPerPage(); - if (count > maximumItemsPerPage) { + if (maximumItemsPerPage != -1 && count > maximumItemsPerPage) { if (log.isDebugEnabled()) { log.debug(String.format("Given limit exceeds the maximum limit. Therefore the limit is set to %s.", maximumItemsPerPage));