Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
JCR Resource 2.0.6
-
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.