jackrabbit-dev mailing list archives

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

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

Konrad Windszus resolved JCRVLT-482.
------------------------------------
    Fix Version/s: 3.4.8
       Resolution: Fixed

Fixed in https://github.com/apache/jackrabbit-filevault/commit/2d6207684fbf78609463feccf0e1afec07ef6a70.

[~sseifert] Thanks for the PR.

> 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
>             Fix For: 3.4.8
>
>
> 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