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

SaaS Delivery endpoint referenceDepth should have default of 1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 3.0.0
    • 3.0.0
    • None

    Description

      Same as https://magnolia-cms.atlassian.net/browse/MX-70

       

      On Norsu - when you do not supply a referenceDepth property on a delivery endpoint, then no references are resolved at all.

      Expected behaviour is that the default value for referenceDepth is 1 (as documented) and that if you do not supply the property that reference resolving acts on the top level. (As it behaves in JCR)

      Same problem happens with assetReferenceResolver and norsuReferenceResolver

      Example configuration:

       

      $type: pagesDeliveryEndpoint_v2
      # referenceDepth: 2 
      
      references:
        - name: imageReference
          propertyName: image
          referenceResolver:
            $type: assetReferenceResolver
      
        - name: activityReference
          propertyName: targetActivity
          referenceResolver:
            $type: norsuReferenceResolver
            targetWorkspace: activities
            expand: true 

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                canh.nguyen Canh Nguyen
                czimmermann Christopher Zimmermann
                DeveloperX
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Work Started:

                  Checklists

                    Bug DoR
                    Task DoD