Can't retrieve a page from a navigation
---------------------------------------
Key: GTNPORTAL-2019
URL:
https://issues.jboss.org/browse/GTNPORTAL-2019
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Java API
Reporter: Matt Wringe
When trying to call getTargetPage() on a navigation from a portal object, it fails with
the following error:
10:37:23,161 ERROR [STDERR] Caused by: java.lang.IllegalArgumentException: Invalid value
'portal::classic::homepage' for component 'page'. Valid values should
match: '\w+'
10:37:23,161 ERROR [STDERR] at org.gatein.api.id.Component.validate(Component.java:67)
10:37:23,161 ERROR [STDERR] at
org.gatein.api.id.GenericContext.validate(GenericContext.java:245)
10:37:23,161 ERROR [STDERR] at
org.gatein.api.id.GenericId.getIdForChild(GenericId.java:67)
10:37:23,161 ERROR [STDERR] at
org.gatein.portal.api.impl.GateInImpl.pageId(GateInImpl.java:661)
10:37:23,161 ERROR [STDERR] at
org.gatein.portal.api.impl.portal.NavigationImpl.getTargetPage(NavigationImpl.java:155)
10:37:23,161 ERROR [STDERR] at
org.gatein.api.rest.resource.handler.SitesHandler.toNodeResource(SitesHandler.java:163)
10:37:23,161 ERROR [STDERR] at
org.gatein.api.rest.resource.handler.SitesHandler.getNodesResourceForPortal(SitesHandler.java:147)
10:37:23,161 ERROR [STDERR] at
org.gatein.api.rest.service.SitesService.getNodes(SitesService.java:152)
10:37:23,161 ERROR [STDERR] ... 47 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira