accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubb...@apache.org
Subject [1/3] git commit: ACCUMULO-1891 sets errorcode to default if it is null during message lookup.
Date Fri, 15 Nov 2013 02:56:31 GMT
Updated Branches:
  refs/heads/1.6.0-SNAPSHOT 484053a2f -> 28bbb56f3


ACCUMULO-1891 sets errorcode to default if it is null during message lookup.

Signed-off-by: Christopher Tubbs <ctubbsii@apache.org>


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

Branch: refs/heads/1.6.0-SNAPSHOT
Commit: 268028f8c17118208d45119ec26fc3e929a7f179
Parents: 1e96138
Author: Sean Busbey <busbey@clouderagovt.com>
Authored: Wed Nov 13 16:15:10 2013 -0600
Committer: Christopher Tubbs <ctubbsii@apache.org>
Committed: Thu Nov 14 21:48:34 2013 -0500

----------------------------------------------------------------------
 .../apache/accumulo/core/client/AccumuloSecurityException.java    | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/268028f8/src/core/src/main/java/org/apache/accumulo/core/client/AccumuloSecurityException.java
----------------------------------------------------------------------
diff --git a/src/core/src/main/java/org/apache/accumulo/core/client/AccumuloSecurityException.java
b/src/core/src/main/java/org/apache/accumulo/core/client/AccumuloSecurityException.java
index d1bb0cb..a8c3187 100644
--- a/src/core/src/main/java/org/apache/accumulo/core/client/AccumuloSecurityException.java
+++ b/src/core/src/main/java/org/apache/accumulo/core/client/AccumuloSecurityException.java
@@ -27,6 +27,9 @@ public class AccumuloSecurityException extends Exception {
   private static final long serialVersionUID = 1L;
   
   private static String getDefaultErrorMessage(SecurityErrorCode errorcode) {
+    if (null == errorcode) {
+      errorcode = SecurityErrorCode.DEFAULT_SECURITY_ERROR;
+    }
     switch (errorcode) {
       case BAD_CREDENTIALS:
         return "Username or Password is Invalid";


Mime
View raw message