From e10cf668134b70039e341152f83eee9ebb302453 Mon Sep 17 00:00:00 2001 From: kamidu Date: Thu, 14 Dec 2017 19:18:44 +0530 Subject: [PATCH] Enable roles containing the filter to be listed in role listing --- .../mgt/jaxrs/service/impl/RoleManagementServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/RoleManagementServiceImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/RoleManagementServiceImpl.java index 896c6d7d26..a142b35610 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/RoleManagementServiceImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/RoleManagementServiceImpl.java @@ -606,6 +606,8 @@ public class RoleManagementServiceImpl implements RoleManagementService { String[] roles; if ((filter == null) || filter.isEmpty()) { filter = "*"; + } else { + filter += "*"; } if (log.isDebugEnabled()) { log.debug("Getting the list of user roles");