You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2014/08/29 13:50:07 UTC

svn commit: r1621290 - /sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverImpl.java

Author: cziegeler
Date: Fri Aug 29 11:50:06 2014
New Revision: 1621290

URL: http://svn.apache.org/r1621290
Log:
SLING-3730 : ResourceResolver does not always set the metadata "sling.resolutionPath" properly

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

Modified: sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverImpl.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverImpl.java?rev=1621290&r1=1621289&r2=1621290&view=diff
==============================================================================
--- sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverImpl.java (original)
+++ sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverImpl.java Fri Aug 29 11:50:06 2014
@@ -348,9 +348,10 @@ public class ResourceResolverImpl extend
             // SLING-864: if the path contains a dot we assume this to be
             // the start for any selectors, extension, suffix, which may be
             // used for further request processing.
+            // the resolution path must be the full path and is already set within
+            // the non existing resource
             final int index = resourcePath.indexOf('.');
             if (index != -1) {
-                res.getResourceMetadata().setResolutionPath(resourcePath.substring(0, index));
                 res.getResourceMetadata().setResolutionPathInfo(resourcePath.substring(index));
             }
         } else {