Skip to content

Commit

Permalink
Fix search person by uid in person add action
Browse files Browse the repository at this point in the history
  • Loading branch information
yurem committed Sep 15, 2020
1 parent 78ef6b5 commit c964095
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ public List<GluuCustomPerson> getPersonsByUid(String uid, String... returnAttrib
return null;
}

Filter userUidFilter = Filter.createEqualityFilter(Filter.createLowercaseFilter(OxConstants.UID), StringHelper.toLowerCase(uid));
Filter userUidFilter = Filter.createEqualityFilter(Filter.createLowercaseFilter(OxConstants.UID), StringHelper.toLowerCase(uid)).multiValued(false);

List<GluuCustomPerson> entries = persistenceEntryManager.findEntries(getDnForPerson(null), GluuCustomPerson.class, userUidFilter, returnAttributes);
log.debug("Found {} entries for userId = {}", entries.size(), uid);
Expand Down

0 comments on commit c964095

Please sign in to comment.