[ 
http://issues.apache.org/jira/browse/JCR-659?page=comments#action_12456871 ] 
            
Stefan Guggisberg commented on JCR-659:
---------------------------------------

i was able to reproduce the issue with a node type that defines both a 
multi-valued named property *and* a residual single-valued property.

e.g. 
[app:foo] > nt:unstructered
- app:names (string) multiple

the issue can also be reproduced by adding a mixin (with a multi-valued prop) 
to a node that includes nt:unstructered.

> 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
>         Assigned To: Stefan Guggisberg
>
> 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

        

Reply via email to