incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jus...@apache.org
Subject svn commit: r1213304 - /sling/trunk/bundles/servlets/get/src/main/java/org/apache/sling/servlets/get/impl/helpers/ResourceTraversor.java
Date Mon, 12 Dec 2011 16:46:16 GMT
Author: justin
Date: Mon Dec 12 16:46:15 2011
New Revision: 1213304

URL: http://svn.apache.org/viewvc?rev=1213304&view=rev
Log:
SLING-2320 - disabling maxResources only on level == 1

Modified:
    sling/trunk/bundles/servlets/get/src/main/java/org/apache/sling/servlets/get/impl/helpers/ResourceTraversor.java

Modified: sling/trunk/bundles/servlets/get/src/main/java/org/apache/sling/servlets/get/impl/helpers/ResourceTraversor.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/servlets/get/src/main/java/org/apache/sling/servlets/get/impl/helpers/ResourceTraversor.java?rev=1213304&r1=1213303&r2=1213304&view=diff
==============================================================================
--- sling/trunk/bundles/servlets/get/src/main/java/org/apache/sling/servlets/get/impl/helpers/ResourceTraversor.java
(original)
+++ sling/trunk/bundles/servlets/get/src/main/java/org/apache/sling/servlets/get/impl/helpers/ResourceTraversor.java
Mon Dec 12 16:46:15 2011
@@ -96,7 +96,7 @@ public class ResourceTraversor {
                 Resource res = children.next();
                 // SLING-2320: always allow enumeration of one's children;
                 // DOS-limitation is for deeper traversals.
-                if (count > maxResources && maxRecursionLevels > 1) {
+                if (count > maxResources && maxRecursionLevels != 1) {
                     throw new RecursionTooDeepException(String.valueOf(currentLevel));
                 }
                 collectResource(res, currentLevel);



Mime
View raw message