[MGNLUI-7125] Warning in logs: Encountered the '$type' property but failed to resolved the type from its value Created: 29/Apr/22  Updated: 03/Jan/23  Resolved: 29/Nov/22

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.18
Fix Version/s: 6.3, 6.2.27

Type: Bug Priority: Neutral
Reporter: Roman Kovařík Assignee: Sang Ngo Huu
Resolution: Fixed Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: 1d 5h Time Spent: 1d 3h
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Issue Links:
causality
is causing MAGNOLIA-8710 $type: analyticsView doesn't work sin... Closed
duplicate
is duplicated by MGNLUI-7336 AnnotationProcessingTypeResolver gene... Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLUI-7639 Implementation Sub-task Completed Sang Ngo Huu  
MGNLUI-7640 Review Sub-task Completed Roman Kovařík  
MGNLUI-7641 Pre-int QA Sub-task Completed Daniel Alonso  
MGNLUI-7642 QA Sub-task Completed Quach Hao Thien  
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:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Release notes required:
Yes
Date of First Response:
Epic Link: Maintenance of vaadin8 framework
Sprint: Nucleus 24
Story Points: 2
Team: Nucleus
Work Started:

 Description   

aDialog.yaml:

form:   
  $type: tabbedForm
  ...

Results in warning in server logs:

2022-04-29 08:05:48,758 WARN  a.config.resolver.AnnotationProcessingTypeResolver: Encountered the '$type' property but failed to resolved the type from its value: [tabbedForm]. Available types: [treeView,listView,thumbnailView]

The config works though as it's propagated to EditorType resolver eventually.



 Comments   
Comment by Roman Kovařík [ 29/Apr/22 ]

Discovery:

As ViewType annotation is bound to very generic ViewDefinition, it can be triggered also for a EditorDefinition which itself is an instance of ViewDefinition.

It might not happen in all installation as resolvers are stored in a HashMap so their order is random.

Proposal:

  1. Bound ViewType to ContentViewDefinition only.
Generated at Mon Feb 12 09:43:22 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.