Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2250

Only one SNS node is shown when using items REST API with depth=-1

    Details

    • Steps to Reproduce:
      Hide

      Create a repository with SNS, for example:

          <test jcr:uuid="9fda5db3-c02c-471f-864a-9caebfb80629">
              <test jcr:uuid="dee674ec-662f-4074-b775-255b036c8a91"/>
              <test jcr:uuid="87defb4b-7aa0-42c8-a20c-965ac8a8d454"/>
          </test>
      

      Go to <API_CONTEXT>/PromAvto/default/items/test (both the child nodes show up):

      {
        "self": "<API_CONTEXT>/default/items/test",
        "up": "<API_CONTEXT>/default/items/",
        "id": "9fda5db3-c02c-471f-864a-9caebfb80629",
        "jcr:primaryType": "nt:unstructured",
        "children": {
          "test": {
            "self": "<API_CONTEXT>/default/items/test/test",
            "up": "<API_CONTEXT>/default/items/test",
            "id": "dee674ec-662f-4074-b775-255b036c8a91"
          },
          "test[2]": {
            "self": "<API_CONTEXT>/default/items/test/test%5b2%5d",
            "up": "<API_CONTEXT>/default/items/test",
            "id": "87defb4b-7aa0-42c8-a20c-965ac8a8d454"
          }
        }
      }
      

      Go to <API_CONTEXT>/PromAvto/default/items/test?depth=-1 (only one child node shows up):

      {
        "self": "<API_CONTEXT>/default/items/test",
        "up": "<API_CONTEXT>/default/items/",
        "id": "9fda5db3-c02c-471f-864a-9caebfb80629",
        "jcr:primaryType": "nt:unstructured",
        "children": {"test": {
          "self": "<API_CONTEXT>/default/items/test/test%5b2%5d",
          "up": "<API_CONTEXT>/default/items/test",
          "id": "87defb4b-7aa0-42c8-a20c-965ac8a8d454",
          "jcr:primaryType": "nt:unstructured"
        }}
      }
      
      Show
      Create a repository with SNS, for example: <test jcr:uuid= "9fda5db3-c02c-471f-864a-9caebfb80629" > <test jcr:uuid= "dee674ec-662f-4074-b775-255b036c8a91" /> <test jcr:uuid= "87defb4b-7aa0-42c8-a20c-965ac8a8d454" /> </test> Go to <API_CONTEXT>/PromAvto/default/items/test (both the child nodes show up): { "self" : "<API_CONTEXT>/ default /items/test" , "up" : "<API_CONTEXT>/ default /items/" , "id" : "9fda5db3-c02c-471f-864a-9caebfb80629" , "jcr:primaryType" : "nt:unstructured" , "children" : { "test" : { "self" : "<API_CONTEXT>/ default /items/test/test" , "up" : "<API_CONTEXT>/ default /items/test" , "id" : "dee674ec-662f-4074-b775-255b036c8a91" }, "test[2]" : { "self" : "<API_CONTEXT>/ default /items/test/test%5b2%5d" , "up" : "<API_CONTEXT>/ default /items/test" , "id" : "87defb4b-7aa0-42c8-a20c-965ac8a8d454" } } } Go to <API_CONTEXT>/PromAvto/default/items/test?depth=-1 (only one child node shows up): { "self" : "<API_CONTEXT>/ default /items/test" , "up" : "<API_CONTEXT>/ default /items/" , "id" : "9fda5db3-c02c-471f-864a-9caebfb80629" , "jcr:primaryType" : "nt:unstructured" , "children" : { "test" : { "self" : "<API_CONTEXT>/ default /items/test/test%5b2%5d" , "up" : "<API_CONTEXT>/ default /items/test" , "id" : "87defb4b-7aa0-42c8-a20c-965ac8a8d454" , "jcr:primaryType" : "nt:unstructured" }} }

      Description

      When I specify a depth=-1 parameter in the items endpoint of the REST API, I can no longer see all the SNS nodes in the response.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                hchiorean Horia Chiorean
                Reporter:
                eldaryus Eldar Yusupov
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: