Vikas Kumar created RANGER-5214: ----------------------------------- Summary: KMS is throwing IOException instead of AccessControlException Key: RANGER-5214 URL: https://issues.apache.org/jira/browse/RANGER-5214 Project: Ranger Issue Type: Bug Components: kms Reporter: Vikas Kumar Assignee: Vikas Kumar
assertAccess() method throws AccessControlException if access assertion fails . But during implementation of Metrics best practices this regression got introduced. Now this AccessControlException is getting wrapped inside IOException and hence returning the wrong HTTP Response code. Following API methods got affected: generateDataKey() generateEncryptedKeys II will be raising the PR soon. -- This message was sent by Atlassian Jira (v8.20.10#820010)