Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-7193

Number keys are not supported in definition decoration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.6.1
    • 5.6
    • None
    • Saigon 124, Saigon 125
    • 5

      When testing Content Delivery Endpoint, I got this errors and the endpoint doesn't work. It may originate from YAML decoration.

      Stack trace: stackTrace

      Light module to reproduce the issue: light-modules.zip


      In a nutshell, I have two YAML files.
      light-modules/rest-test/restEndpoints/rest1.yaml

      class: info.magnolia.rest.delivery.jcr.v1.JcrDeliveryEndpointDefinition
      params:
        pages:
          workspace: website
          bypassWorkspaceAcls: true
          includeSystemProperties: false
          nodeTypes:
            0: mgnl:page
      

      and
      light-modules/add-features-1/decorations/rest-test/restEndpoints/rest1.yaml

      params:
        pages:
          nodeTypes:
            0: mgnl:page
            1: mgnl:component
      

      The decoration file should have effect but it doesn't. Without that decoration file, the endpoint works.

        Acceptance criteria

          1. problemsTab.png
            32 kB
            Hieu Nguyen Duc
          2. stackTrace
            4 kB
            Hieu Nguyen Duc

              mgeljic Mikaël Geljić
              hieu.nguyen Hieu Nguyen Duc
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - 5.5h Original Estimate - 5.5h
                    5.5h
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 1d 0.5h
                    1d 0.5h