[MGNLUI-8675] Double and Long types inside jcrMultivalueField are stored as String at JCR Created: 01/Feb/24  Updated: 01/Feb/24

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

Type: Bug Priority: Neutral
Reporter: Carlos Cantalapiedra Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
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
Team: Nucleus

 Description   

Steps to reproduce

  1. Create a component which has a double field within a jcrMultiField:
    component.yaml
    form:
      properties:
        myField:
          label: My Field
          $type: jcrMultiValueField
          itemProvider:
            class: info.magnolia.ui.editor.MultiValueAsMultipleProperties$Definition
          field:
            name: number
            label: ' '
            $type: textField
            type: java.lang.Double
            converterClass: com.vaadin.data.converter.StringToDoubleConverter 
  2.  Create the component and save a Double value within the number field
  3. Check at JCR that the value has been stored as String instead of Double

Expected results

Just as happens for simple fields as Textfield, the value is stored as Double

Actual results

The value is stored as String

Workaround

N/A

Development notes

N/A


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