Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-11466

JcrPropertyMapCacheEntry: ValueFormatException when converting value InputStream to number-array

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • JCR Resource 3.2.2
    • JCR
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              angela Angela Schreiber
              angela Angela Schreiber
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: