[MGNLUI-5723] 6.2 compatiblity layer does not support MultiValueSubChildrenNodePropertiesTransformer Created: 12/Mar/20  Updated: 20/Apr/20  Resolved: 20/Apr/20

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: None
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: PNG File cards-dialog-multi.png    
Issue Links:
Relates
relates to MGNLUI-5726 MultiField's ByIndexedChildNodes chil... Closed
supersession
is superseded by MGNLUI-5801 Increase the amount of complex transf... 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: UI framework implementation
Story Points: 5

 Description   

I'm trying to use the SPA demo in the new 6.2 page app but getting an exception - I think due to 
transformerClass: info.magnolia.ui.form.field.transformer.multi.MultiValueSubChildrenNodePropertiesTransformer

Caused by: java.lang.ClassCastException: info.magnolia.ui.field.ConfiguredSwitchableFieldDefinition cannot be cast to info.magnolia.ui.field.ConfiguredFieldDefinition
	at info.magnolia.ui.form.field.definition.migration.MultiValueFieldDefinitionConverter.convert(MultiValueFieldDefinitionConverter.java:67) ~[magnolia-ui-framework-compatibility-6.2-SNAPSHOT.jar:?]
	at info.magnolia.ui.form.field.definition.migration.MultiValueFieldDefinitionConverter.convert(MultiValueFieldDefinitionConverter.java:61) ~[magnolia-ui-framework-compatibility-6.2-SNAPSHOT.jar:?]
	at info.magnolia.ui.form.definition.DefinitionConverter.lambda$static$2(DefinitionConverter.java:155) ~[magnolia-ui-framework-compatibility-6.2-SNAPSHOT.jar:?]

You can see the dialog definition here:
https://git.magnolia-cms.com/users/czimmermann/repos/website-spa-demo/browse/magnolia/light-modules/spa-website-lm/dialogs/components/Cards.yaml
 
See attached image for appearence in 6.1
 


I tried changing the transformer to

`info.magnolia.ui.form.field.transformer.multi.DelegatingMultiValueFieldTransformer`

but I still got an exception and the dialog does not open:

Caused by: java.lang.ClassCastException: info.magnolia.ui.field.ConfiguredSwitchableFieldDefinition cannot be cast to info.magnolia.ui.field.ConfiguredFieldDefinition
	at info.magnolia.ui.form.field.definition.migration.MultiValueFieldDefinitionConverter.convert(MultiValueFieldDefinitionConverter.java:67) ~[magnolia-ui-framework-compatibility-6.2-SNAPSHOT.jar:?]
	at info.magnolia.ui.form.field.definition.migration.MultiValueFieldDefinitionConverter.convert(MultiValueFieldDefinitionConverter.java:61) ~[magnolia-ui-framework-compatibility-6.2-SNAPSHOT.jar:?]
	at info.magnolia.ui.form.definition.DefinitionConverter.lambda$static$2(DefinitionConverter.java:155) ~[magnolia-ui-framework-compatibility-6.2-SNAPSHOT.jar:?]

 


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