jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1375935 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/XPathQueryEvaluator.java
Date Wed, 22 Aug 2012 08:08:08 GMT
Author: mduerig
Date: Wed Aug 22 08:08:07 2012
New Revision: 1375935

URL: http://svn.apache.org/viewvc?rev=1375935&view=rev
Log:
JCR-3415: XPathQueryEvaluator generates incorrect XPath query

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/XPathQueryEvaluator.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/XPathQueryEvaluator.java?rev=1375935&r1=1375934&r2=1375935&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/XPathQueryEvaluator.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/XPathQueryEvaluator.java
Wed Aug 22 08:08:07 2012
@@ -131,13 +131,13 @@ public class XPathQueryEvaluator impleme
         String repPrincipal = session.getJCRName(UserConstants.P_PRINCIPAL_NAME);
 
         xPath.append('(')
-                .append("jcr:like(")
+                .append("jcr:like(@")
                 .append(repPrincipal)
                 .append(",'")
                 .append(condition.getPattern())
                 .append("')")
                 .append(" or ")
-                .append("jcr:like(fn:name(.),'")
+                .append("jcr:like(fn:name(),'")
                 .append(escape(condition.getPattern()))
                 .append("')")
                 .append(')');



Mime
View raw message