[MGNLUI-3404] Error rendering link field with no label property in YAML configured dialog Created: 22/Apr/15  Updated: 09/Mar/21  Resolved: 09/Mar/21

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

Type: Bug Priority: Major
Reporter: Christopher Zimmermann Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File tourCarousel.dialog.yaml     File tourCarousel.yaml    
Issue Links:
duplicate
is duplicated by MGNLUI-3990 Arrays in YAML usually require name 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
Epic Link: Config by file / code
Story Points: 2

 Description   

On magnolia-ui-m6, A NullPointerException is thrown at info.magnolia.ui.form.field.definition.FieldDefinitionKeyGenerator.keysFor(FieldDefinitionKeyGenerator.java:64)
when one opens a dialog containing a link field where the "field" node does not have a "label" property. The same dialog does open correctly when configured via bootstrap.

Example dialog file attached.
When a label is added to the field node - then it works correctly.


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