Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-5541

Multi-valued property with wrong type used when created in relaxed node type

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Top
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.20.04, 2.21.06
    • Component/s: None
    • Labels:
      None
    • Similar issues:

      Description

      When using the multi-valued property model to create a new property, it uses the wrong property definition in the relaxed node type. This leads to property values being created with the wrong type, e.g. double for string values.

      This leads to issues such as

      [INFO] [talledLocalContainer] 11.10.2011 16:27:03 ERROR [org.apache.wicket.RequestCycle.logRuntimeException():1529] org.onehippo.forge.selection.frontend.model.ListItem cannot be cast to java.lang.Double
      [INFO] [talledLocalContainer] java.lang.ClassCastException: org.onehippo.forge.selection.frontend.model.ListItem cannot be cast to java.lang.Double
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.model.properties.JcrMultiPropertyValueModel.setObject(JcrMultiPropertyValueModel.java:144)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.model.properties.JcrMultiPropertyValueModel.setObject(JcrMultiPropertyValueModel.java:54)
      [INFO] [talledLocalContainer] at org.apache.wicket.extensions.markup.html.form.palette.Palette.updateModel(Palette.java:516)
      [INFO] [talledLocalContainer] at org.apache.wicket.extensions.markup.html.form.palette.Palette$1.updateModel(Palette.java:268)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jsheriff Junaidh Kadhar Sheriff
                Reporter:
                fvlankvelt Frank van Lankvelt (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: