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

REST server does not return same name siblings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.CR1
    • 3.0.0.Beta4
    • API, Server
    • None

      The new v2 REST API does not seem to return same name siblings. I have:
      /node
      /node[2]

      The v1 REST API returns:

      GET http://localhost:8080/modeshape-rest/v1/sample/default/items
      
      {
        "properties": {
          "jcr:primaryType": "mode:root",
          "jcr:uuid": "81513257505d64/"
        },
        "children": [
          "jcr:system",
          "node",
          "node[2]"
        ]
      }
      

      However v2 returns:

      GET http://localhost:8080/modeshape-rest/sample/default/items
      
      {
        "self": "http://localhost:8080/modeshape-rest/sample/default/items/",
        "up": "http://localhost:8080/modeshape-rest/sample",
        "jcr:primaryType": "{http://www.modeshape.org/1.0}root",
        "jcr:uuid": "81513257505d64/",
        "children": {
          "jcr:system": {
            "self": "http://localhost:8080/modeshape-rest/sample/default/items/jcr:system",
            "up": "http://localhost:8080/modeshape-rest/sample/default/items/"
          },
          "node": {
            "self": "http://localhost:8080/modeshape-rest/sample/default/items/node[2]",
            "up": "http://localhost:8080/modeshape-rest/sample/default/items/"
          }
        }
      }
      
      

              rhauch Randall Hauch (Inactive)
              jonathandfields_jira Jonathan Fields (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: