You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Radu Cotescu (JIRA)" <ji...@apache.org> on 2016/01/12 17:15:39 UTC

[jira] [Created] (SLING-5427) The jcr:created and jcr:lastModified properties are not read for mocked resources created through the ContentLoader

Radu Cotescu created SLING-5427:
-----------------------------------

             Summary: The jcr:created and jcr:lastModified properties are not read for mocked resources created through the ContentLoader
                 Key: SLING-5427
                 URL: https://issues.apache.org/jira/browse/SLING-5427
             Project: Sling
          Issue Type: Bug
          Components: Testing
    Affects Versions: Testing Sling Mock 1.6.0
            Reporter: Radu Cotescu


Assuming one wants to import the following structure for a test:
{noformat}
"list-children-paginated": {
    "jcr:primaryType"   : "nt:unstructured",
    "jcr:createdBy"     : "admin",
    "orderBy"           : "jcr:created",
    "jcr:lastModifiedBy": "admin",
    "feedEnabled"       : true,
    "pageMax"           : "2",
    "jcr:created"       : "Mon Jan 11 2016 15:23:53 GMT+0100",
    "limit"             : "0",
    "displayAs"         : "default",
    "jcr:lastModified"  : "Tue Jan 12 2016 15:40:55 GMT+0100",
    "sling:resourceType": "project/components/list",
    "listFrom"          : "children"
}
{noformat}

the {{Resource}} obtained from the {{RESOURCERESOLVER_MOCK}} will not have the {{jcr:created}} / {{jcr:lastModified}} properties defined in its {{ValueMap}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)