sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1628701 - /sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/helper/ResourceIterator.java
Date Wed, 01 Oct 2014 13:45:42 GMT
Author: cziegeler
Date: Wed Oct  1 13:45:41 2014
New Revision: 1628701

URL: http://svn.apache.org/r1628701
Log:
SLING-3986 : Resolution path info is not set when using listChildren

Modified:
    sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/helper/ResourceIterator.java

Modified: sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/helper/ResourceIterator.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/helper/ResourceIterator.java?rev=1628701&r1=1628700&r2=1628701&view=diff
==============================================================================
--- sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/helper/ResourceIterator.java
(original)
+++ sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/helper/ResourceIterator.java
Wed Oct  1 13:45:41 2014
@@ -204,6 +204,8 @@ public class ResourceIterator implements
                     visited.add(resPath);
                     delayed.remove(resPath);
                     log.debug("      resource {} {}", resPath, res.getClass());
+
+                    res.getResourceMetadata().setResolutionPath(res.getPath());
                     return res;
 
                 }
@@ -234,6 +236,7 @@ public class ResourceIterator implements
                             visited.add(resPath);
                             log.debug("   B  resource {} {}", resPath,
                                     res.getClass());
+                            res.getResourceMetadata().setResolutionPath(res.getPath());
                             return res;
                         }
                     }
@@ -255,6 +258,7 @@ public class ResourceIterator implements
         final Resource res = delayedIter.hasNext() ? delayedIter.next() : null;
         if (res != null) {
             log.debug("   D  resource {} {}", res.getPath(), res.getClass());
+            res.getResourceMetadata().setResolutionPath(res.getPath());
         }
         return res;
     }



Mime
View raw message