jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpfis...@apache.org
Subject svn commit: r348767 - /incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/CachingHierarchyManager.java
Date Thu, 24 Nov 2005 16:24:29 GMT
Author: dpfister
Date: Thu Nov 24 08:24:15 2005
New Revision: 348767

URL: http://svn.apache.org/viewcvs?rev=348767&view=rev
Log:
CachingHierarchyManager should run base class tests, too

Modified:
    incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/CachingHierarchyManager.java

Modified: incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/CachingHierarchyManager.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/CachingHierarchyManager.java?rev=348767&r1=348766&r2=348767&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/CachingHierarchyManager.java
(original)
+++ incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/CachingHierarchyManager.java
Thu Nov 24 08:24:15 2005
@@ -175,6 +175,15 @@
     public ItemId resolvePath(Path path)
             throws PathNotFoundException, RepositoryException {
 
+        // Run base class shortcut and sanity checks first
+        if (path.denotesRoot()) {
+            return rootNodeId;
+        } else if (!path.isCanonical()) {
+            String msg = "path is not canonical";
+            log.debug(msg);
+            throw new RepositoryException(msg);
+        }
+
         PathMap.Element element = map(path);
         if (element == null) {
             return super.resolvePath(path);



Mime
View raw message