[MGNLUI-6652] Non-string field in jcrMultiValueField causes ValueFormatException Created: 12/Apr/21  Updated: 12/Apr/21

Status: Open
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.7
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Adam Siska Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled

 Description   

Steps to reproduce

Use one of these field definitions and try to add more than one value in the multi field and save:

    longs:
      $type: jcrMultiValueField
      field:
        $type: textField
        type: java.lang.Long
        converterClass: com.vaadin.data.converter.StringToLongConverter
    bools:
      $type: jcrMultiValueField
      field:
        $type: checkBoxField

Expected results

all values are saved properly

Actual results

ValueFormatException with "inhomogeneous type of values" info is thrown.


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