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:
Michael Stack 2007-12-03 17:20:22 +00:00
parent ffe660105a
commit 79e64fcc4f
2 changed files with 5 additions and 2 deletions

View File

@ -50,6 +50,8 @@ Trunk (unreleased changes)
HADOOP-2309 ConcurrentModificationException doing get of all region start keys
HADOOP-2321 TestScanner2 does not release resources which sometimes cause the
test to time out
HADOOP-2315 REST servlet doesn't treat / characters in row key correctly
(Bryan Duxbury via Stack)
IMPROVEMENTS
HADOOP-2401 Add convenience put method that takes writable

View File

@ -157,6 +157,7 @@ implements javax.servlet.Servlet {
* element in pathSegment is not the empty string.
*/
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("/");
}
}
}