jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Seifert (Jira)" <j...@apache.org>
Subject [jira] [Updated] (JCRVLT-482) ArrayIndexOutOfBoundsException when validating multivalue property with empty value array
Date Tue, 01 Dec 2020 15:27:00 GMT

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

Stefan Seifert updated JCRVLT-482:
----------------------------------
    Flags: Patch

PR: https://github.com/apache/jackrabbit-filevault/pull/106

> ArrayIndexOutOfBoundsException when validating multivalue property with empty value array
> -----------------------------------------------------------------------------------------
>
>                 Key: JCRVLT-482
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-482
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>          Components: vlt
>    Affects Versions: 3.4.8
>            Reporter: Stefan Seifert
>            Priority: Major
>
> when validating a docview property with an empty value array, e.g.
> {code:xml}
>     <jcr:content
>         cq:tags="[]"
>         jcr:primaryType="cq:PageContent"/>
> {code}
> validation fails with an exception
> {noformat}
> 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)
> ...
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message