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

The setAllowedTypes of Rule is not work correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Neutral
    • None
    • None
    • None

    Description

      Steps to reproduce

      1. try to put the config in yaml

       

      params:
        rule:
         class: info.magnolia.cms.util.Rule
         allowedTypes:
           - mgnl:folder
           - mgnl:asset 

       

       

             2.  Check allowedTypes in this method info.magnolia.cms.util.Rule#setAllowedTypes

      .. Logs, screenshots, gifs...

      Expected results

      allowedTypes should contains 2 items: mgnl:folder and mgnl:asset

      Actual results

      The array value is trimmed incorrect

      Workaround

      Development notes

      Checklists

        Acceptance criteria

        Attachments

          1. actual.png
            actual.png
            61 kB
          2. expect.png
            expect.png
            35 kB

          Issue Links

            Activity

              People

                yen.lactue Yen Lac Tue
                yen.lactue Yen Lac Tue
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD