You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by fm...@apache.org on 2008/02/22 10:28:41 UTC

svn commit: r630127 - /incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/ResourcePathIterator.java

Author: fmeschbe
Date: Fri Feb 22 01:28:40 2008
New Revision: 630127

URL: http://svn.apache.org/viewvc?rev=630127&view=rev
Log:
SLING-269 Allow requesting the root node without extension

Modified:
    incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/ResourcePathIterator.java

Modified: incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/ResourcePathIterator.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/ResourcePathIterator.java?rev=630127&r1=630126&r2=630127&view=diff
==============================================================================
--- incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/ResourcePathIterator.java (original)
+++ incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/ResourcePathIterator.java Fri Feb 22 01:28:40 2008
@@ -53,8 +53,8 @@
         }
 
         if (i < 0) {
-            // only slash
-            nextPath = null;
+            // only slashes, assume root node
+            nextPath = "/";
 
         } else if (i < path.length() - 1) {
             // cut off slash