When migrating from WP v8.0 to WP v8.5 with managed pages enabled on v8.0 special care must be taken when projects with draft pages are used on v8.0. Especially if customer wants to use the JCR domain from a different environment (for example PROD) than the page hierarchy (REL). This because of the way how (draft) pages are handled when managed pages are enabled.
When managed pages are enabled the page definitions are stored in two locations namely in the REL database as well as in the JCR database (in library Portal Site). Portal provides a synchronization service to synchronize the XML specification of the page in both directions when WCM versioning is enabled. The page XML in this case is then stored in the attribute "portalPageXML" on the JCR node for the page. Using the attribute the page information can be syndicated to other nodes (where the subscriber then creates the corresponding REL entry again).
However there are some cases when the "portalPageXML" attribute is not set for performance reasons .For example the attribute is not set for draft pages or if versioning for the pages is disabled.
Coming back to the original problem namely that the customer wants to migrate the JCR domain from PROD and the page hierarchy from another stage (let's say integration). As the draft pages are strored in the REL domain only and the JCR node does not contain the "portalPageXML" attribute the pages are basically broken in this case. To avoid/fix hat issue you have basically two options namely:
- Use the REL and JCR domain from the same source environment
- Use xmlaccess to copy over the draft pages from the source REL environment
To copy over the project related data using XML you need to specify the project in the -url parameter of the xmlaccess command just as it it used in the browser when you work in a project (https://<host>:<port>/wps/myportal/$project/<project-name>/Home/Welcome). Therfore to export the project with the name "2016_01_27-002" the xmlaccess command would be:
./xmlaccess.sh -in /dev/shm/ExportPage.xml -user wpsadmin -password <pwd> -url http://localhost:10039/wps/config/\$project/2016_01_27-002 -out /dev/shm/project_pages_out.xml
Note: As the project URL contains the literal "$project" you must escape the "$" on Unix platforms!