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:43:51 UTC

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

Tobias Bocanegra created JCR-3661:
-------------------------------------

             Summary: 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