We're running into a problem where rolling out changes to a Catalog Blueprint isn't propagating new section pages when they are created programmatically using the PageManager API.
Take a Catalog Blueprint that was created programmatically and is located at:
Creating a Catalog in Sites from this blueprint in Touch UI using Create > Catalog works fine and the catalog including all section and product pages are created as expected.
If you create a new section page either through Touch UI:
or even in Classic UI
and then do a "Rollout Changes" at master_catalog level from within TouchUI the new pages are rolled out as expected. Great so far.
However, when a new section page is created programmatically using the PageManager API that page is not rolled out when the same "Rollout Changes" is initiated.
Comparing the nodes and node properties across the three different section pages that were created (TouchUI, ClassicUI and PageManager API) the only difference in the properties of the programmatic one is that the protected properties "jcr:created" and "jcr:createdBy" are not present on the "jcr:content" node.
It sounds feasible that a new page wouldn't be picked up if those properties weren't there but of course that's pure theory.
Here's the code used to create the new section page.
PageManager pageManager = resourceResolver.adaptTo(PageManager.class);
Page newPage = pageManager.create("/content/catalogs/gtsp/products/es/master_catalog", "programmatic", "/libs/commerce/templates/section", "programmatic", true);
// Have to set these as the jcr:content node gets created by PageManager as "nt:unstructured" with no template or resource type
Node newPageNode = newPage.adaptTo(Node.class);
Node cont = newPageNode.getNode("jcr:content");
cont.setPrimaryType("cq:PageContent");
cont.setProperty("cq:template", "/libs/commerce/templates/section");
cont.setProperty("sling:resourceType", "commerce/components/section");
Any ideas?