Can't retrieve site ids
-----------------------
Key: GTNPORTAL-2017
URL:
https://issues.jboss.org/browse/GTNPORTAL-2017
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Java API
Reporter: Matt Wringe
can't retrieve a portal site id. When trying to call this:
gateIn.siteId(Site.PORTAL, siteName);
Will fail with:
17:46:40,128 ERROR [STDERR] Caused by: java.lang.IllegalArgumentException: Wrong number of
components: 1 for Context 'Site'. Was expecting at most 3 values for components:
type, name, page, ; among which 'type, name' are required. Got: [portal]
17:46:40,128 ERROR [STDERR] at
org.gatein.api.id.GenericContext.validate(GenericContext.java:317)
17:46:40,128 ERROR [STDERR] at
org.gatein.api.id.GenericContext.internalCreate(GenericContext.java:171)
17:46:40,128 ERROR [STDERR] at
org.gatein.api.id.GenericContext.internalCreate(GenericContext.java:140)
17:46:40,128 ERROR [STDERR] at
org.gatein.api.id.GenericContext.create(GenericContext.java:115)
17:46:40,128 ERROR [STDERR] at
org.gatein.portal.api.impl.GateInImpl.siteId(GateInImpl.java:655)
17:46:40,128 ERROR [STDERR] at
org.gatein.api.rest.resource.handler.SitesHandler.getPortalSiteResource(SitesHandler.java:112)
17:46:40,128 ERROR [STDERR] at
org.gatein.api.rest.service.SitesService.getSite(SitesService.java:122)
17:46:40,128 ERROR [STDERR] ... 47 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira