Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5427

The jcr:created and jcr:lastModified properties are not read for mocked resources created through the ContentLoader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Testing Sling Mock 1.6.0
    • None
    • Testing
    • None

    Description

      Assuming one wants to import the following structure for a test:

      "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"
      }
      

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

      Attachments

        1. SLING-5427-test.patch
          3 kB
          Stefan Seifert

        Activity

          People

            Unassigned Unassigned
            radu Radu Cotescu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: