[MGNLUI-7001] Empty YAML "fields" Value Cause The Definitions App To Break Created: 24/Nov/20  Updated: 12/Jan/22  Resolved: 05/Jan/22

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

Type: Bug Priority: Neutral
Reporter: Julian Nodarse Assignee: Jaroslav Simak
Resolution: Fixed Votes: 0
Labels: maintenance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to CFGUI-73 Definitions app crashes because a pro... Closed
relates to MAGNOLIA-7280 Empty property in yaml definition bre... Closed
relates to MAGNOLIA-8383 Incomplete app definition permissions... Closed
causality
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Sprint: DevX 1
Story Points: 2

 Description   

Steps to reproduce

  1.  go to https://demoauthor.magnolia-cms.com/
  2.  go to Resource Files app
  3. open /travel-demo/dialogs/pages/pageProperties.yaml for editing
  4. remove all fields from the first tab so you are left with the following:
    form:
      tabs:
        - name: tabMain
          fields:
  5. Open app launcher menu
  6. Open Definitions app
  7. See NPE

Expected results

An empty value for "fields" should not affect the definitions. This should only result in a minor error. It should not cause the definitions app to break : 

https://documentation.magnolia-cms.com/display/DOCS62/YAML#YAML-Syntax

Actual results

The definitions app breaks when you try to access it while having a dialog containing an empty YAML "fields" value.

Workaround

Check each dialog to see which have empty value for "fields".  

Development notes

Please see linked tickets for possible reasons this is happening. 


Generated at Mon Feb 12 09:42:09 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.