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

Circular references cause stack overflow

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Critical
    • None
    • 2.0
    • None
    • None

    Description

      Reference resolver for the stories property in the stories app causes stack overflow when the endpoint is requested.

      To reproduce:

      1. Change a story to reference another story in such a way as to cause a circular reference, for example configure "flavors of asia" to point to itself.

      2.Configure delivery endpoint as follows:

        stories:
          depth: 0
          includeSystemProperties: true
          bypassWorkspaceAcls: true
          rootPath: /stories-demo
          nodeTypes:
            0: mgnl:composition
          limit: 1
          references:
            tours:
              propertyName: stories
              referenceResolver:
                implementationClass: info.magnolia.rest.reference.jcr.UuidReferenceResolver
                targetWorkspace: stories
      

      3. Request endpoint.

      Result: Stack overflow.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                czimmermann Christopher Zimmermann
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD