Uploaded image for project: 'Magnolia REST Framework'
  1. Magnolia REST Framework
  2. MGNLREST-186

ReadNode gives wrong node order at depth>1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.1.1
    • 2.0.2
    • delivery
    • None
    • Saigon 141
    • 3

      At the 2nd level of response from the v2 delivery endpoint the nodes have the wrong order in the array.

      To reproduce - use this enpdoint config: (/delivery/travel1.yaml)

      class: info.magnolia.rest.delivery.jcr.v2.JcrDeliveryEndpointDefinition
      workspace: website
      rootPath: /
      includeSystemProperties: false
      depth: 2
      nodeTypes:
       - mgnl:page
      childNodeTypes:
       - mgnl:page
      

      Hit this url: http://localhost:8080/magnoliaAuthor/.rest/delivery/travel1/travel

       

      The response for the "about" page includes this:

      ....
      
        "about": {
          "@name": "about",
      
          ....
      
          "@nodes": [
            "what-we-believe",
            "careers",
            "company"
          ]
      
      ....

      Whereas the actual order is:

      • company
      • what-we-believe
      • careers

       

        Acceptance criteria

              hieu.nguyen Hieu Nguyen Duc
              czimmermann Christopher Zimmermann
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - 2d
                    2d
                    Remaining:
                    Time Spent - 1d 1h Remaining Estimate - 7h
                    7h
                    Logged:
                    Time Spent - 1d 1h Remaining Estimate - 7h
                    1d 1h