accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject [1/2] git commit: ACCUMULO-1672 byte buffers use offsets into a backing array
Date Fri, 20 Sep 2013 16:22:24 GMT
Updated Branches:
  refs/heads/master 49aa56ba5 -> 80b21b8d5


ACCUMULO-1672 byte buffers use offsets into a backing array


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/964b6f6d
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/964b6f6d
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/964b6f6d

Branch: refs/heads/master
Commit: 964b6f6d1bd68e09c3b1ada1b7e7839d51dea95e
Parents: fe85c92
Author: Eric Newton <eric.newton@gmail.com>
Authored: Fri Sep 20 12:22:13 2013 -0400
Committer: Eric Newton <eric.newton@gmail.com>
Committed: Fri Sep 20 12:22:13 2013 -0400

----------------------------------------------------------------------
 proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/964b6f6d/proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java
----------------------------------------------------------------------
diff --git a/proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java b/proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java
index 9ce1840..cec8cfc 100644
--- a/proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java
+++ b/proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java
@@ -193,7 +193,7 @@ public class ProxyServer implements AccumuloProxy.Iface {
   }
   
   protected Connector getConnector(ByteBuffer login) throws Exception {
-    String[] pair = new String(login.array(), Constants.UTF8).split(",", 2);
+    String[] pair = new String(login.array(), login.position(), login.remaining(), Constants.UTF8).split(",",
2);
     if (instance.getInstanceID().equals(pair[0])) {
       Credentials creds = Credentials.deserialize(pair[1]);
       return instance.getConnector(creds.getPrincipal(), creds.getToken());


Mime
View raw message