[
https://issues.apache.org/jira/browse/SLING-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carsten Ziegeler resolved SLING-2687.
-------------------------------------
Resolution: Won't Fix
> 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
>
> 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 was sent by Atlassian Jira
(v8.20.10#820010)