Uploaded image for project: 'Jackrabbit FileVault'
  1. Jackrabbit FileVault
  2. JCRVLT-4

jcrvlt: String[]{""} not packaged correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0
    • None
    • None

    Description

      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]"

      Attachments

        Activity

          People

            tripod Tobias Bocanegra
            tripod Tobias Bocanegra
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: