sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asa...@apache.org
Subject svn commit: r1609429 - /sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java
Date Thu, 10 Jul 2014 09:52:07 GMT
Author: asanso
Date: Thu Jul 10 09:52:07 2014
New Revision: 1609429

URL: http://svn.apache.org/r1609429
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=1609429&r1=1609428&r2=1609429&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
Thu Jul 10 09:52:07 2014
@@ -579,14 +579,16 @@ public class MapEntries implements Event
             final String actualContentPath = getActualContentPath(path);
             for (final String target : this.vanityTargets.keySet()) {
                 if (target.startsWith(actualContentPath)) {
-                    wasResolverRefreshed = doRemoveAttributes(actualContentPath, new String
[] {"sling:vanityPath"}, true, wasResolverRefreshed);
+                    wasResolverRefreshed = doRemoveAttributes(path, new String [] {"sling:vanityPath"},
true, wasResolverRefreshed);
                 }
             }
             for (final String target : this.aliasMap.keySet()) {
                 if (actualContentPath.startsWith(target)) {
-                    wasResolverRefreshed = doRemoveAttributes(actualContentPath, new String
[] {"sling:alias"}, true, wasResolverRefreshed);
+                    wasResolverRefreshed = doRemoveAttributes(path, new String [] {"sling:alias"},
true, wasResolverRefreshed);
                 }
             }
+            //need to update the configuration
+            doUpdateConfiguration();
         } else {
             String [] addedAttributes = (String []) event.getProperty(SlingConstants.PROPERTY_ADDED_ATTRIBUTES);
             if (addedAttributes != null) {



Mime
View raw message