[ https://issues.apache.org/jira/browse/SLING-1308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12803248#action_12803248 ]
Alexander Klimetschek commented on SLING-1308: ---------------------------------------------- Just to clarify: this patch does not set the Location header (AFAICS), but simply returns the possible URLs like /.1.json, /.2.json, etc. up until the maximum depth that returns a number of nodes below the configurable limit. But there seems to be a bug in the latest patch: allowedLevel should be decremented in the loop, otherwise it seems endless: + while (allowedLevel >= 0) { + writer.value(r.getPath() + "." + tidyUrl + allowedLevel + ".json"); + } > Node.infinity.json contains risk for DOS. > ----------------------------------------- > > Key: SLING-1308 > URL: https://issues.apache.org/jira/browse/SLING-1308 > Project: Sling > Issue Type: Bug > Components: Servlets > Affects Versions: Servlets Get 2.0.8 > Reporter: Simon Gaeremynck > Priority: Critical > Attachments: jsonRenderer.diff > > > As it is now any user can do a node.infinity.json . > If this happens on the root node in a repository with many items, it will > cause the server to slow down (eventually crash?) > I've created a patch confirming the discussion @ > http://markmail.org/search/?q=node.infinity#query:node.infinity+page:1+mid:ugqjyqdz2trfpdkr+state:results -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.