accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [02/15] git commit: ACCUMULO-2183 Look for the thrift SecurityErrorCode since this is coming from the ThriftSecurityException.
Date Thu, 23 Jan 2014 18:05:42 GMT
ACCUMULO-2183 Look for the thrift SecurityErrorCode since this is coming from the ThriftSecurityException.


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

Branch: refs/heads/master
Commit: 956c32f8fa258ea0b87f267675cdcec91e16dce1
Parents: fbed7af
Author: Josh Elser <elserj@apache.org>
Authored: Thu Jan 23 12:15:10 2014 -0500
Committer: Josh Elser <elserj@apache.org>
Committed: Thu Jan 23 12:15:10 2014 -0500

----------------------------------------------------------------------
 .../org/apache/accumulo/test/randomwalk/security/Validate.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/956c32f8/test/src/main/java/org/apache/accumulo/test/randomwalk/security/Validate.java
----------------------------------------------------------------------
diff --git a/test/src/main/java/org/apache/accumulo/test/randomwalk/security/Validate.java
b/test/src/main/java/org/apache/accumulo/test/randomwalk/security/Validate.java
index 2a3e445..047bba3 100644
--- a/test/src/main/java/org/apache/accumulo/test/randomwalk/security/Validate.java
+++ b/test/src/main/java/org/apache/accumulo/test/randomwalk/security/Validate.java
@@ -108,7 +108,7 @@ public class Validate extends Test {
       auths = WalkingSecurity.get(state).getUserAuthorizations(WalkingSecurity.get(state).getTabCredentials());
       accuAuths = conn.securityOperations().getUserAuthorizations(WalkingSecurity.get(state).getTabUserName());
     } catch (ThriftSecurityException ae) {
-      if (ae.getCode().equals(SecurityErrorCode.USER_DOESNT_EXIST)) {
+      if (ae.getCode().equals(org.apache.accumulo.core.client.impl.thrift.SecurityErrorCode.USER_DOESNT_EXIST))
{
         if (tableUserExists)
           throw new AccumuloException("Table user didn't exist when they should.", ae);
         else


Mime
View raw message