[gatein-issues] [JBoss JIRA] Created: (GTNPORTAL-2016) URIBuilder.segment does not encode '/' for the url
Matt Wringe (JIRA)
jira-events at lists.jboss.org
Sun Aug 14 17:41:02 EDT 2011
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#segment%28java.lang.String...%29
"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
More information about the gatein-issues
mailing list