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

Number keys are not supported in definition decoration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: 5.6
    • Fix Version/s: 5.6.1
    • Component/s: None
    • Labels:
    • Sprint:
      Saigon 124, Saigon 125
    • Story Points:
      5
    • Magnolia Release:
      5.6.1

      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.

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  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