[ https://issues.apache.org/jira/browse/SLING-11466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joerg Hoh closed SLING-11466. ----------------------------- > JcrPropertyMapCacheEntry: ValueFormatException when converting value > InputStream to number-array > ------------------------------------------------------------------------------------------------ > > Key: SLING-11466 > URL: https://issues.apache.org/jira/browse/SLING-11466 > Project: Sling > Issue Type: Bug > Components: JCR > Reporter: Angela Schreiber > Assignee: Angela Schreiber > Priority: Major > Fix For: JCR Resource 3.2.2 > > > this is related to SLING-11465: > when creating a {{JcrPropertyMapCacheEntry}} from a single-valued Binary > Property and convert it to a number-array, the conversion will fail with > {{ValueFormatException}}. > the reason is {{convertToArray}} is called with an array constructed from the > singular property value. looping over the array will call {{convertToType}} > with an index != -1 which results in > {{Long.valueOf(this.property.getLengths()[index])}}. however, for a > single-valued property {{getLengths}} fails with {{ValueFormatException}} -> > consequently null is returned instead of the length of the property. > [~cziegeler] fyi -- This message was sent by Atlassian Jira (v8.20.10#820010)