Page creation fails when using a template loaded from JSON (JCR_OAK)

Description

Page creation fails when creating a page with a specified template, because of the PageManager implementation which tries to copy the jcr:created property from the template (which is protected). This issue only occurs when using the JCR_OAK resolver type.

Sample code at https://github.com/dplaton/test-aem-mocks/blob/master/src/test/java/com/day/cq/testing/TestPageCreation.java

The stacktrace:

Gliffy Diagrams

Activity

Show:

Stefan Seifert November 11, 2016 at 1:44 PM

release early, release often - just released

Daniel Platon November 11, 2016 at 8:44 AM

Thanks for fixing this, Stefan. Do you have an ETA for AEM Mocks 2.1.0?

Stefan Seifert November 10, 2016 at 5:20 PM

fixed in AEM Mocks 2.1.0

https://github.com/wcm-io/wcm-io-testing/commit/555bd15449861e98344d570ddaa7981b0de177f1

i've used your test files for the unit test.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created November 10, 2016 at 10:00 AM
Updated November 11, 2016 at 1:44 PM
Resolved November 10, 2016 at 5:20 PM