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

Proactively set length of jcr:data property for nt:file node resources

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JCR Resource 2.0.6
    • JCR Resource 2.0.8
    • JCR
    • None

    Description

      A resource wrapping a node of type nt:file provides access to the jcr:content/jcr:data by an adapter to the InputStream. In this case, the Property.getLength() value of the jcr:content/jcr:data property can be considered the content length of the resource and should be set in the ResourceMetadata accordingly.

      Currently (as of SLING-288) the content length metadata property is only set when the resource is adapted to an InputStream.

      Same holds for Property-based resources.

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: