[
https://issues.jboss.org/browse/GTNPORTAL-2820?page=com.atlassian.jira.pl...
]
RH Bugzilla Integration commented on GTNPORTAL-2820:
----------------------------------------------------
Martin Weiler <mweiler(a)redhat.com> made a comment on [bug
916260|https://bugzilla.redhat.com/show_bug.cgi?id=916260]
Attaching a fixed version of the reproducer. The key is to create a cloned page with the
same name, but in a different destination folder:
SiteKey srcSiteKey = new SiteKey(SiteType.PORTAL, "classic");
PageKey srcPage = new PageKey(srcSiteKey, "homepage");
// destination
SiteKey dstSiteKey = new SiteKey(SiteType.GROUP, "/platform/users");
pageService.clone(srcPage, dstSiteKey.page(srcPage.getName()));
output = "Page " + srcPage + " cloned with success to " +
dstSiteKey;
Note that you can only successfully invoke the portlet once.
Unable to clone page (PageService) in a different destination
-------------------------------------------------------------
Key: GTNPORTAL-2820
URL:
https://issues.jboss.org/browse/GTNPORTAL-2820
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Java API
Affects Versions: 3.5.0.Final
Environment: Gatein 3.5.2 Final
Reporter: Gregory SEBERT
Assignee: Boleslaw Dawidowicz
Fix For: 3.6.0.Beta01
In the PageManagement service, when I clone a page to a different destination, I received
an exception :
"Could not clone page " + dst.name + "to existing page " +
dst.site.getType() + " with id " + dst.site.getName());
I have a look at the implementation, I find a typo mistake on line 273:
org.gatein.mop.api.workspace.Page dstRoot = srcSite.getRootPage();
It should be :
org.gatein.mop.api.workspace.Page dstRoot = dstSite.getRootPage();
Best regards,
Grégory
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira