PageService clone method doesn't clone to a different location in JPP 6
Issue
When trying to use the PageContext
to clone a page to a different site, it doesn't work. The page is always cloned into the original site
PageService pageService = ((PageService) exo.getComponentInstanceOfType(PageService.class));
SiteKey siteKey = new SiteKey(SiteType.USER, "root");
PageKey pageKey = new PageKey(siteKey, "myClonedPage");
pageService.clone(pageSrcKey, pageKey);
When the destination is other than the original site of the cloned page, the following error is shown:
"Could not clone page {destination} to existing page {page} with id {site}
Environment
- JBoss Enterprise Portal Platform (JPP)
- 6.0.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.