HADOOP-2315 REST servlet doesn't treat / characters in row key correctly
git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk/src/contrib/hbase@600604 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ffe660105a
commit
79e64fcc4f
|
@ -50,6 +50,8 @@ Trunk (unreleased changes)
|
||||||
HADOOP-2309 ConcurrentModificationException doing get of all region start keys
|
HADOOP-2309 ConcurrentModificationException doing get of all region start keys
|
||||||
HADOOP-2321 TestScanner2 does not release resources which sometimes cause the
|
HADOOP-2321 TestScanner2 does not release resources which sometimes cause the
|
||||||
test to time out
|
test to time out
|
||||||
|
HADOOP-2315 REST servlet doesn't treat / characters in row key correctly
|
||||||
|
(Bryan Duxbury via Stack)
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
HADOOP-2401 Add convenience put method that takes writable
|
HADOOP-2401 Add convenience put method that takes writable
|
||||||
|
|
|
@ -157,6 +157,7 @@ implements javax.servlet.Servlet {
|
||||||
* element in pathSegment is not the empty string.
|
* element in pathSegment is not the empty string.
|
||||||
*/
|
*/
|
||||||
private String [] getPathSegments(final HttpServletRequest request) {
|
private String [] getPathSegments(final HttpServletRequest request) {
|
||||||
return request.getPathInfo().substring(1).split("/");
|
int context_len = request.getContextPath().length() + 1;
|
||||||
|
return request.getRequestURI().substring(context_len).split("/");
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue