[JBoss JIRA] Created: (GTNPORTAL-2017) Can't retrieve site ids
by Matt Wringe (JIRA)
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
14 years, 8 months
[JBoss JIRA] Created: (GTNPORTAL-2016) URIBuilder.segment does not encode '/' for the url
by Matt Wringe (JIRA)
URIBuilder.segment does not encode '/' for the url
--------------------------------------------------
Key: GTNPORTAL-2016
URL: https://issues.jboss.org/browse/GTNPORTAL-2016
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Matt Wringe
The eXo WS implementation used in GateIn doesn't properly handle javax.ws.rs.core.UriBuilder.segment(String... segment), it treats this method as a path instead of a segment.
The difference being that if we are dealing with a segment we have to encode the '/' character
See http://download.oracle.com/javaee/6/api/javax/ws/rs/core/UriBuilder.html#...
"Append path segments to the existing path. When constructing the final path, a '/' separator will be inserted between the existing path and the first path segment if necessary and each supplied segment will also be separated by '/'. Existing '/' characters are encoded thus a single value can only represent a single URI path segment."
Offending class : org.exoplatform.services.rest.impl.uri.UriBuilderImpl
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 8 months
[JBoss JIRA] Created: (GTNPORTAL-2015) NPE when calling Site.getPriority
by Matt Wringe (JIRA)
NPE when calling Site.getPriority
---------------------------------
Key: GTNPORTAL-2015
URL: https://issues.jboss.org/browse/GTNPORTAL-2015
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Java API
Reporter: Matt Wringe
When calling site.getPriority() it can fail with an NPE:
16:54:01,264 ERROR [STDERR] Caused by: java.lang.NullPointerException
16:54:01,264 ERROR [STDERR] at org.gatein.portal.api.impl.portal.SiteImpl.getPriority(SiteImpl.java:114)
16:54:01,264 ERROR [STDERR] at org.gatein.api.rest.resource.handler.SitesHandler.toSiteResource(SitesHandler.java:85)
16:54:01,264 ERROR [STDERR] at org.gatein.api.rest.resource.handler.SitesHandler.createPortalTypeResource(SitesHandler.java:58)
16:54:01,264 ERROR [STDERR] at org.gatein.api.rest.service.SitesService.getSiteType(SitesService.java:91)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 8 months