[MAGNOLIA-8231] The setAllowedTypes of Rule is not work correctly Created: 19/Nov/21  Updated: 24/Nov/21  Resolved: 23/Nov/21

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Yen Lac Tue Assignee: Yen Lac Tue
Resolution: Obsolete Votes: 0
Labels: VN-Maintenance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File actual.png     PNG File expect.png    
Issue Links:
Relates
relates to MGNLDAM-802 Restore incl subnodes only restores t... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Release notes required:
Yes
Story Points: 3

 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


Generated at Mon Feb 12 04:30:49 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.