From 58173c8154baea1b4616109bbd3acd8203f7fce0 Mon Sep 17 00:00:00 2001 From: Pradeep Agrawal Date: Wed, 20 Sep 2023 15:51:28 +0530 Subject: [PATCH] RANGER-4422: Searching for users/groups with Sync source filter on the users/groups page leads to error on Oracle DB Change-Id: I4e464eb85019dcd80ef86a35bb6916c8592368ff --- .../src/main/java/org/apache/ranger/service/XGroupService.java | 2 +- .../src/main/java/org/apache/ranger/service/XUserService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/security-admin/src/main/java/org/apache/ranger/service/XGroupService.java b/security-admin/src/main/java/org/apache/ranger/service/XGroupService.java index 6507603043..1f033b33dd 100644 --- a/security-admin/src/main/java/org/apache/ranger/service/XGroupService.java +++ b/security-admin/src/main/java/org/apache/ranger/service/XGroupService.java @@ -81,7 +81,7 @@ public XGroupService() { "XXGroupUser groupUser", "obj.id = groupUser.parentGroupId")); searchFields.add(new SearchField("syncSource", "obj.syncSource", - SearchField.DATA_TYPE.STRING, SearchField.SEARCH_TYPE.FULL)); + SearchField.DATA_TYPE.STRING, SearchField.SEARCH_TYPE.PARTIAL)); createdByUserId = PropertiesUtil.getLongProperty("ranger.xuser.createdByUserId", 1); diff --git a/security-admin/src/main/java/org/apache/ranger/service/XUserService.java b/security-admin/src/main/java/org/apache/ranger/service/XUserService.java index d7c011ca39..166efe82c4 100644 --- a/security-admin/src/main/java/org/apache/ranger/service/XUserService.java +++ b/security-admin/src/main/java/org/apache/ranger/service/XUserService.java @@ -122,7 +122,7 @@ public XUserService() { "xXPortalUser.id=xXPortalUserRole.userId and xXPortalUser.loginId = obj.name ")); searchFields.add(new SearchField("syncSource", "obj.syncSource", - SearchField.DATA_TYPE.STRING, SearchField.SEARCH_TYPE.FULL)); + SearchField.DATA_TYPE.STRING, SearchField.SEARCH_TYPE.PARTIAL)); createdByUserId = PropertiesUtil.getLongProperty("ranger.xuser.createdByUserId", 1);