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

Carsten Ziegeler updated SLING-2687:
------------------------------------

    Fix Version/s: JCR Resource 2.2.6
    
> JcrNodeResource.setMetaData(): take metadata from jcr:content for 
> nt:hierarchyNodes
> -----------------------------------------------------------------------------------
>
>                 Key: SLING-2687
>                 URL: https://issues.apache.org/jira/browse/SLING-2687
>             Project: Sling
>          Issue Type: Improvement
>          Components: JCR
>    Affects Versions: JCR Resource 2.2.0
>            Reporter: Alexander Klimetschek
>            Priority: Minor
>             Fix For: JCR Resource 2.2.6
>
>
> JcrNodeResource.setMetaData() currently only takes a "jcr:content" child node 
> into account for nt:file nodes (and then only uses it, but not the resource 
> node itself). This makes the use of the generic ResourceMetadata quite 
> restricted, and you have to resort to the JCR API again when handling other 
> nt:hierarchyNode types that commonly store all their metadata inside the 
> "jcr:content".
> I suggest that for the time stamp properties "jcr:lastModified" and 
> "jcr:created":
> * look at "jcr:content" for all nt:hierarchyNodes
> * or maybe all nodes that have a "jcr:content" child
> * look at current node first, if property not found there, take from 
> "jcr:content"
> * the "jcr:data", "jcr:mimeType" and "jcr:encoding" properties should 
> continue to be taken from "jcr:content" and only if this is a nt:file (or 
> generalize: the "jcr:content" child node is a nt:resource?)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to