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

REST server does not return same name siblings

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.0.0.Beta4
    • Fix Version/s: 3.0.0.CR1
    • Component/s: API, Server
    • Labels:
      None

      Description

      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/"
          }
        }
      }
      
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rhauch Randall Hauch
                Reporter:
                JonathanDFields Jonathan Fields
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: