jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r881201 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/IndexNodeResolver.java
Date Tue, 17 Nov 2009 08:51:45 GMT
Author: angela
Date: Tue Nov 17 08:51:44 2009
New Revision: 881201

URL: http://svn.apache.org/viewvc?rev=881201&view=rev
Log:
JCR-2313 - Improvements to user management (2) [work in progress] 

- fix query-statement in case of searchRoot equals the root-node's path

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/IndexNodeResolver.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/IndexNodeResolver.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/IndexNodeResolver.java?rev=881201&r1=881200&r2=881201&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/IndexNodeResolver.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/IndexNodeResolver.java
Tue Nov 17 08:51:44 2009
@@ -118,7 +118,10 @@
                              boolean exact, long maxSize)
             throws RepositoryException {
         StringBuilder stmt = new StringBuilder("/jcr:root");
-        stmt.append(getSearchRoot(ntName));
+        String searchRoot = getSearchRoot(ntName);
+        if (!"/".equals(searchRoot)) {
+            stmt.append(searchRoot);
+        }
         stmt.append("//element(*,");
         stmt.append(getNamePathResolver().getJCRName(ntName));
 



Mime
View raw message