Details
-
Bug
-
Resolution: Unresolved
-
Neutral
-
None
-
6.2.17
-
None
-
None
Description
Steps to reproduce
- 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