sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asa...@apache.org
Subject svn commit: r1609744 - /sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java
Date Fri, 11 Jul 2014 16:54:11 GMT
Author: asanso
Date: Fri Jul 11 16:54:11 2014
New Revision: 1609744

URL: http://svn.apache.org/r1609744
Log:
SLING-3755 - ResourceResolverTest#testMapEmptyPath fails

Modified:
    sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java

Modified: sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java?rev=1609744&r1=1609743&r2=1609744&view=diff
==============================================================================
--- sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java
(original)
+++ sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java
Fri Jul 11 16:54:11 2014
@@ -603,8 +603,10 @@ public class MapEntries implements Event
                     wasResolverRefreshed = doRemoveAttributes(path, new String [] {"sling:alias"},
true, wasResolverRefreshed);
                 }
             }
-            //need to update the configuration
-            wasResolverRefreshed = doUpdateConfiguration(wasResolverRefreshed);
+            if (path.startsWith(this.mapRoot)) {
+                //need to update the configuration
+                wasResolverRefreshed = doUpdateConfiguration(wasResolverRefreshed);
+            }
         } else {
             String [] addedAttributes = (String []) event.getProperty(SlingConstants.PROPERTY_ADDED_ATTRIBUTES);
             if (addedAttributes != null) {



Mime
View raw message