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

Number keys are not supported in definition decoration

    XMLWordPrintable

Details

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

    Description

      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.

      Checklists

        Acceptance criteria

        Attachments

          1. light-modules.zip
            40 kB
          2. problemsTab.png
            problemsTab.png
            32 kB
          3. stackTrace
            4 kB

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      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