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

ReadNode gives wrong node order at depth>1

    XMLWordPrintable

Details

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

    Description

      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

       

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

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