Uploaded image for project: 'Magnolia Personalization'
  1. Magnolia Personalization
  2. MGNLPN-144

PreviewFilter.getParameterFromPersona() doesn't work for multi value property

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0
    • Component/s: Preview App
    • Labels:

      Description

      info.magnolia.personalization.preview.filter.PreviewFilter.getParameterFromPersona(Node, String) doesn't work for multi value property.

      2014-06-06 08:53:26,751 ERROR nolia.personalization.preview.filter.PreviewFilter: Can't get property 'visitor' from persona 'node /Sara-Byrne'
      javax.jcr.ValueFormatException: property /Sara-Byrne/visitor is a multi-valued property, so it's values can only be retrieved as an array
      	at org.apache.jackrabbit.core.PropertyImpl.internalGetValue(PropertyImpl.java:483)
      	at org.apache.jackrabbit.core.PropertyImpl.getValue(PropertyImpl.java:510)
      	at org.apache.jackrabbit.core.PropertyImpl.getString(PropertyImpl.java:520)
      	at info.magnolia.jcr.wrapper.DelegatePropertyWrapper.getString(DelegatePropertyWrapper.java:161)
      	at info.magnolia.jcr.wrapper.DelegatePropertyWrapper.getString(DelegatePropertyWrapper.java:161)
      	at info.magnolia.jcr.wrapper.DelegatePropertyWrapper.getString(DelegatePropertyWrapper.java:161)
      	at info.magnolia.personalization.preview.filter.PreviewFilter.getParameterFromPersona(PreviewFilter.java:126)
      	at info.magnolia.personalization.preview.filter.PreviewFilter.doFilter(PreviewFilter.java:75)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rkovarik Roman Kovařík
              Reporter:
              rkovarik Roman Kovařík
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: