HADOOP-11099. KMS return HTTP UNAUTHORIZED 401 on ACL failure. (tucu)

(cherry picked from commit e4ddb6da15)
This commit is contained in:
Alejandro Abdelnur 2014-09-16 21:29:09 -07:00
parent 1c847fdd61
commit 6857c291af
2 changed files with 3 additions and 1 deletions

View File

@ -489,6 +489,8 @@ Release 2.6.0 - UNRELEASED
HADOOP-11062. CryptoCodec testcases requiring OpenSSL should be run
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
INCOMPATIBLE CHANGES

View File

@ -79,7 +79,7 @@ public Response toResponse(Exception exception) {
// we don't audit here because we did it already when checking access
doAudit = false;
} 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
doAudit = false;
} else if (throwable instanceof AccessControlException) {