You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2010/08/29 20:01:54 UTC

[jira] Resolved: (SLING-1705) Proactively set length of jcr:data property for nt:file node resources

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

Felix Meschberger resolved SLING-1705.
--------------------------------------

    Resolution: Fixed

Implemented proactively setting the content length in the resource metadata in Rev. 990610.

> Proactively set length of jcr:data property for nt:file node resources
> ----------------------------------------------------------------------
>
>                 Key: SLING-1705
>                 URL: https://issues.apache.org/jira/browse/SLING-1705
>             Project: Sling
>          Issue Type: Improvement
>          Components: JCR
>    Affects Versions: JCR Resource 2.0.6
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: JCR Resource 2.0.8
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.