jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1357219 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ChildNodesQueryHits.java
Date Wed, 04 Jul 2012 10:36:02 GMT
Author: alexparvulescu
Date: Wed Jul  4 10:36:02 2012
New Revision: 1357219

URL: http://svn.apache.org/viewvc?rev=1357219&view=rev
Log:
JCR-3373 ChildNodesQueryHits may throw IOException when the session has limited access

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ChildNodesQueryHits.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ChildNodesQueryHits.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ChildNodesQueryHits.java?rev=1357219&r1=1357218&r2=1357219&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ChildNodesQueryHits.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ChildNodesQueryHits.java
Wed Jul  4 10:36:02 2012
@@ -18,6 +18,7 @@ package org.apache.jackrabbit.core.query
 
 import org.apache.jackrabbit.core.SessionImpl;
 
+import javax.jcr.ItemNotFoundException;
 import javax.jcr.Node;
 import javax.jcr.RepositoryException;
 import java.io.IOException;
@@ -99,6 +100,8 @@ public class ChildNodesQueryHits extends
             try {
                 Node parent = session.getNodeById(nextParent.getNodeId());
                 childHits = new NodeTraversingQueryHits(parent, false, 1);
+            } catch (ItemNotFoundException e) {
+                // access denied to node, will just skip it
             } catch (RepositoryException e) {
                 throw Util.createIOException(e);
             }



Mime
View raw message