[ https://issues.apache.org/jira/browse/RANGER-5214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17953709#comment-17953709 ]
Dhaval Shah commented on RANGER-5214: ------------------------------------- Committed to apache master branch : https://github.com/apache/ranger/commit/c1f915e5e0d765d210db99bfeb0393484e1abae6 > 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 > Priority: Major > Time Spent: 20m > Remaining Estimate: 0h > > 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)