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:

Status

Assignee

Unassigned

Reporter

Daniel Platon

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure