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

    • Bug
    • Status: Closed
    • Top
    • Resolution: Fixed
    • None
    • 2.20.04, 2.21.06
    • None
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: