Why does the recursion selector not work past a given point?

Avatar

Avatar

jkpanera

Avatar

jkpanera

jkpanera

15-08-2019

If I query http://localhost:4502/apps/pb/components.4.json, I get a useful JSON representation of the repository up to depth four:

{"jcr:primaryType": "nt:folder","jcr:createdBy": "admin","jcr:created": "Mon Jun 25 2018 14:49:46 GMT+0000","content": {"jcr:primaryType": "nt:folder","jcr:createdBy": "admin","jcr:created": "Mon Jun 25 2018 14:49:46 GMT+0000","coffee-subscription": {"jcr:primaryType": "nt:folder","jcr:createdBy": "admin","jcr:created": "Wed Jul 31 2019 10:05:35 GMT-0500","unsubscribe": {"jcr:primaryType": "nt:folder","jcr:createdBy": "admin","jcr:created": "Wed Jul 31 2019 10:05:35 GMT-0500"}}

....

}

but http://localhost:4502/apps/pb/components.5.json​ just gives

["/apps/pb/components.4.json","/apps/pb/components.3.json","/apps/pb/components.2.json","/apps/pb/components.1.json","/apps/b/components.0.json"]

What's going on here?

Thanks!!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

3.0K

Likes

1.1K

Correct Reply

859

Avatar

Arun_Patidar

MVP

Total Posts

3.0K

Likes

1.1K

Correct Reply

859
Arun_Patidar
MVP

16-08-2019

Could you please check JSON Max results property at below , this looks like some configuration issue, could you please try on vanilla instance

http://localhost:4504/system/console/configMgr/org.apache.sling.servlets.get.DefaultGetServlet

The maximum number of resources that should be returned when doing a node.5.json or node.infinity.json. In JSON terms this basically means the number of Objects to return. Default value is 200. (json.maximumresults)

Answers (1)

Answers (1)

Avatar

Avatar

jkpanera

Avatar

jkpanera

jkpanera

16-08-2019

Yep! That was the issue! The value had been 1000. I was able to move it up to 10000 and get my results.

(Of course I understand that this could have performance impacts. This is only on my local.)