You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ct...@apache.org on 2013/11/15 03:56:42 UTC
[2/5] git commit: ACCUMULO-1891 sets errorcode to default if it is
null during message lookup.
ACCUMULO-1891 sets errorcode to default if it is null during message lookup.
Signed-off-by: Christopher Tubbs <ct...@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/master
Commit: 268028f8c17118208d45119ec26fc3e929a7f179
Parents: 1e96138
Author: Sean Busbey <bu...@clouderagovt.com>
Authored: Wed Nov 13 16:15:10 2013 -0600
Committer: Christopher Tubbs <ct...@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";