From aaa0ed351c58257dc8e2e79456d48c29e15782e6 Mon Sep 17 00:00:00 2001 From: Udara Pathum Date: Mon, 22 Jan 2024 20:44:30 +0530 Subject: [PATCH] Add scimType to BadRequestException --- .../carbon/identity/scim2/common/impl/SCIMRoleManagerV2.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMRoleManagerV2.java b/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMRoleManagerV2.java index 2d3a04aa2..305f375f2 100644 --- a/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMRoleManagerV2.java +++ b/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMRoleManagerV2.java @@ -1292,7 +1292,8 @@ private void prepareAddedRemovedUserLists(Set addedMembers, Set } if (memberObject.get(SCIMConstants.RoleSchemaConstants.DISPLAY) == null) { - throw new BadRequestException("User can't be resolved from the given user Id."); + throw new BadRequestException("User can't be resolved from the given user Id.", + ResponseCodeConstants.INVALID_VALUE); } List roleList;