HADOOP-11099. KMS return HTTP UNAUTHORIZED 401 on ACL failure. (tucu)
This commit is contained in:
parent
c0c7e6fabd
commit
e4ddb6da15
|
@ -824,6 +824,8 @@ Release 2.6.0 - UNRELEASED
|
||||||
HADOOP-11062. CryptoCodec testcases requiring OpenSSL should be run
|
HADOOP-11062. CryptoCodec testcases requiring OpenSSL should be run
|
||||||
only if -Pnative is used. (asuresh via tucu)
|
only if -Pnative is used. (asuresh via tucu)
|
||||||
|
|
||||||
|
HADOOP-11099. KMS return HTTP UNAUTHORIZED 401 on ACL failure. (tucu)
|
||||||
|
|
||||||
Release 2.5.1 - 2014-09-05
|
Release 2.5.1 - 2014-09-05
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -79,7 +79,7 @@ public class KMSExceptionsProvider implements ExceptionMapper<Exception> {
|
||||||
// we don't audit here because we did it already when checking access
|
// we don't audit here because we did it already when checking access
|
||||||
doAudit = false;
|
doAudit = false;
|
||||||
} else if (throwable instanceof AuthorizationException) {
|
} else if (throwable instanceof AuthorizationException) {
|
||||||
status = Response.Status.UNAUTHORIZED;
|
status = Response.Status.FORBIDDEN;
|
||||||
// we don't audit here because we did it already when checking access
|
// we don't audit here because we did it already when checking access
|
||||||
doAudit = false;
|
doAudit = false;
|
||||||
} else if (throwable instanceof AccessControlException) {
|
} else if (throwable instanceof AccessControlException) {
|
||||||
|
|
Loading…
Reference in New Issue