How to increase recursion depth when requesting JSON renditions of JCR?
Hey guys,
I can request a representation of the JCR in JSON format by requesting a path with .json at the end. For example:
http://author:4502/content/panerabread_com/en-us/menu.2.jsonGive me:
{
"jcr:primaryType": "cq:Page",
"jcr:createdBy": "admin",
"jcr:created": "Mon Feb 08 2021 11:10:35 GMT-0600",
"jcr:content": {
"jcr:primaryType": "cq:PageContent",
"jcr:mixinTypes": [
"mix:versionable"
],
"jcr:createdBy": "admin",
"jcr:title": "Menu",
"cq:lastReplicationAction": "Activate",
"jcr:versionHistory": "48bffb93-389c-48b6-adec-52308e1620dc",
"cq:template": "/conf/panerabread/settings/wcm/templates/panerabread-general-page",
"cq:lastReplicatedBy": "admin",
"jcr:language": "en",
"jcr:predecessors": [
"ed1af475-f38f-4fdb-99e5-a2f6af78203a"
],
"cq:contextHubSegmentsPath": "/etc/segmentation/contexthub",
"jcr:created": "Mon Feb 08 2021 11:10:35 GMT-0600",
"cq:lastReplicated": "Mon Mar 15 2021 14:14:34 GMT-0500",
"cq:lastModified": "Mon Nov 18 2019 15:20:17 GMT-0600",
"jcr:description": "Menu",
"jcr:baseVersion": "ed1af475-f38f-4fdb-99e5-a2f6af78203a",
"jcr:isCheckedOut": true,
"pageTitle": "Menu",
"jcr:lastModified": "Tue Nov 10 2020 13:46:46 GMT-0600",
"jcr:uuid": "281efb27-c6ea-4af4-bb2f-7378162d40c3"
}(actually a lot more you don't need all the details)
But I can't do the same on publish:
http://publish:4502/content/panerabread_com/en-us/menu.2.json
gives:
[
"/content/panerabread_com/en-us/menu.1.json",
"/content/panerabread_com/en-us/menu.0.json"
]
I believe that publish is restricted from recursing beyond a certain depth for security reasons, but I'd like to be able to enable arbitrary recursion in test environments to more easily troubleshoot issues. What config should I change to enable that?
Thanks!
