This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.jcr.jackrabbit.usermanager-2.1.0 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-jackrabbit-usermanager.git
commit 115a97296f1b1e559e3bd121e2d742af5e558289 Author: Felix Meschberger <[email protected]> AuthorDate: Tue Feb 16 10:59:31 2010 +0000 SLING-1377 use the actual searchType to find principals and remove old comment git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/jackrabbit-usermanager@910468 13f79535-47bb-0310-9956-ffa450edef68 --- .../usermanager/impl/resource/AuthorizableResourceProvider.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/org/apache/sling/jackrabbit/usermanager/impl/resource/AuthorizableResourceProvider.java b/src/main/java/org/apache/sling/jackrabbit/usermanager/impl/resource/AuthorizableResourceProvider.java index e1d2df4..a9d7a66 100644 --- a/src/main/java/org/apache/sling/jackrabbit/usermanager/impl/resource/AuthorizableResourceProvider.java +++ b/src/main/java/org/apache/sling/jackrabbit/usermanager/impl/resource/AuthorizableResourceProvider.java @@ -169,15 +169,10 @@ public class AuthorizableResourceProvider implements ResourceProvider { } if (searchType != -1) { PrincipalIterator principals = null; - - // TODO: this actually does not work correctly since the - // jackrabbit findPrincipals API - // currently does an exact match of the search filter so it - // won't match a wildcard Session session = resourceResolver.adaptTo(Session.class); if (session != null) { PrincipalManager principalManager = AccessControlUtil.getPrincipalManager(session); - principals = principalManager.getPrincipals(PrincipalManager.SEARCH_TYPE_NOT_GROUP); + principals = principalManager.getPrincipals(searchType); } if (principals != null) { -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
