import of multivalue properties with single value results in incorrect property
creation
----------------------------------------------------------------------------------------
Key: JCR-659
URL: http://issues.apache.org/jira/browse/JCR-659
Project: Jackrabbit
Issue Type: Bug
Components: core
Affects Versions: 1.1
Environment: Linux, Tomcat 5.5.20, JDK 1.6.0rc1, both xml file
repository and derby db repository.
Reporter: Torgeir Veimo
When importing a file exported with system view, a value of a multivalued
property is stored as a singlevalue property. The bug seems to be that for some
reason, even if PropDef.isMultiple() is true for a given property, no
ValueFormatException is thrown when setting the property as single value.
Workaround:
It works if I change PropInfo.apply() line 136 to
if (va.length == 1 && !def.isMultiple()) {
...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira