hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r600604 - in /lucene/hadoop/trunk/src/contrib/hbase: CHANGES.txt src/java/org/apache/hadoop/hbase/rest/Dispatcher.java
Date Mon, 03 Dec 2007 17:20:23 GMT
Author: stack
Date: Mon Dec  3 09:20:22 2007
New Revision: 600604

URL: http://svn.apache.org/viewvc?rev=600604&view=rev
Log:
HADOOP-2315 REST servlet doesn't treat / characters in row key correctly

Modified:
    lucene/hadoop/trunk/src/contrib/hbase/CHANGES.txt
    lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/rest/Dispatcher.java

Modified: lucene/hadoop/trunk/src/contrib/hbase/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/contrib/hbase/CHANGES.txt?rev=600604&r1=600603&r2=600604&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/contrib/hbase/CHANGES.txt (original)
+++ lucene/hadoop/trunk/src/contrib/hbase/CHANGES.txt Mon Dec  3 09:20:22 2007
@@ -50,6 +50,8 @@
    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

Modified: lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/rest/Dispatcher.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/rest/Dispatcher.java?rev=600604&r1=600603&r2=600604&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/rest/Dispatcher.java
(original)
+++ lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/rest/Dispatcher.java
Mon Dec  3 09:20:22 2007
@@ -157,6 +157,7 @@
    * 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("/");
   }
-}
\ No newline at end of file
+}



Mime
View raw message