You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2013/08/31 00:51:51 UTC

[jira] [Resolved] (JCR-3661) jcrvlt: String[]{""} not packaged correctly

     [ https://issues.apache.org/jira/browse/JCR-3661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tobias Bocanegra resolved JCR-3661.
-----------------------------------

    Resolution: Fixed

fixed in revision 1519105 (3.0.0-SNAPSHOT)
                
> jcrvlt: String[]{""} not packaged correctly
> -------------------------------------------
>
>                 Key: JCR-3661
>                 URL: https://issues.apache.org/jira/browse/JCR-3661
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>            Reporter: Tobias Bocanegra
>            Assignee: Tobias Bocanegra
>
> A MV property with 1 empty string value is serialized as "[]". When deserialized, this results in an empty MV property with 0 values.
> eg:
> <?xml version="1.0" encoding="UTF-8"?>
> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
>     jcr:primaryType="sling:Folder"
>     allowedChildren="[]"/>
> This is a flaw in the DocViewPropertyFormat. the simplest solution is to mark an empty string value with \0.
> eg:
>     allowedChildren="[\0]"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira