incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jus...@apache.org
Subject svn commit: r933748 - /sling/trunk/bundles/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/internal/SlingServletResolver.java
Date Tue, 13 Apr 2010 19:13:39 GMT
Author: justin
Date: Tue Apr 13 19:13:39 2010
New Revision: 933748

URL: http://svn.apache.org/viewvc?rev=933748&view=rev
Log:
SLING-1446 - supporting paths with workspace names in them

Modified:
    sling/trunk/bundles/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/internal/SlingServletResolver.java

Modified: sling/trunk/bundles/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/internal/SlingServletResolver.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/internal/SlingServletResolver.java?rev=933748&r1=933747&r2=933748&view=diff
==============================================================================
--- sling/trunk/bundles/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/internal/SlingServletResolver.java
(original)
+++ sling/trunk/bundles/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/internal/SlingServletResolver.java
Tue Apr 13 19:13:39 2010
@@ -1014,7 +1014,10 @@ public class SlingServletResolver implem
 
                 // if the path of the event is a sub path of a search path
                 // we flush the whole cache
-                final String path = (String) event.getProperty(SlingConstants.PROPERTY_PATH);
+                String path = (String) event.getProperty(SlingConstants.PROPERTY_PATH);
+                if (path.contains(":")) {
+                    path = path.substring(path.indexOf(":") + 1);
+                }
                 final String[] searchPaths = this.searchPath;
                 int index = 0;
                 while (!flushCache && index < searchPaths.length) {



Mime
View raw message