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

ArrayIndexOutOfBoundsException when validating multivalue property with empty value array

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.8
    • 3.4.8
    • vlt
    • None
    • Patch

    Description

      when validating a docview property with an empty value array, e.g.

          <jcr:content
              cq:tags="[]"
              jcr:primaryType="cq:PageContent"/>
      

      validation fails with an exception

      Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
          at org.apache.jackrabbit.vault.validation.spi.impl.nodetype.JcrNodeTypeMetaDataImpl.addProperty (JcrNodeTypeMetaDataImpl.java:537)
          at org.apache.jackrabbit.vault.validation.spi.impl.nodetype.NodeTypeValidator.addProperty (NodeTypeValidator.java:148)
          at org.apache.jackrabbit.vault.validation.spi.impl.nodetype.NodeTypeValidator.validate (NodeTypeValidator.java:128)
          at org.apache.jackrabbit.vault.validation.impl.util.DocumentViewXmlContentHandler.startElement (DocumentViewXmlContentHandler.java:199)
      ...
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sseifert Stefan Seifert
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: