Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-8335

convertPropertyStringToObject method in PropertiesImportExport doesn't work for multi value properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Neutral
    • None
    • 6.2.17
    • None
    • None

    Description

      Steps to reproduce

      1. Use the test case provided that creates a node with a multivalue property as "/node.multiple-values=String[]:{value1,value2}"

      Expected results

      The test case createSession_SetsNodePropertiesAsMultiValue is correctly executed

      Actual results

      There is an error:

      javax.jcr.ValueFormatException: Cannot call getValues() on a single-value property.

      Workaround

      Initialise properties otherwise so PropertiesImportExport class is not used. See test case createSession_SetsNodePropertiesAsMultiValue2

      Development notes

      Method info.magnolia.jcr.util.PropertiesImportExport.convertPropertyStringToObject(String) only considers properties of types date, binary, int or any java.lang.* class Therefore it is not possible to use Arrays or Lists.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              jayala Jonathan Ayala
              Nucleus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD