[
https://issues.apache.org/jira/browse/HBASE-22123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
stack resolved HBASE-22123.
---------------------------
Resolution: Fixed
Assignee: Tomas Sokorai
Hadoop Flags: Reviewed
Fix Version/s: 2.1.5
2.0.6
2.3.0
2.2.0
3.0.0
Release Note:
When insufficient permissions, you now get:
HTTP/1.1 403 Forbidden
on the HTTP side, and in the message
Forbidden
org.apache.hadoop.hbase.security.AccessDeniedException:
org.apache.hadoop.hbase.security.AccessDeniedException: Insufficient
permissions for user ‘myuser',action: get, tableName:mytable, family:cf.
at
org.apache.ranger.authorization.hbase.RangerAuthorizationCoprocessor.authorizeAccess(RangerAuthorizationCoprocessor.java:547)
and the rest of the ADE stack
Pushed to branch-2.0+ Thanks for the patch [~tsokorai] I added you as a
contributor. Fill in an email address on your JIRA profile if not one there
already... didn't see one but apparently it doesn't show to all viewers...
> REST gateway reports Insufficient permissions exceptions as 404 Not Found
> -------------------------------------------------------------------------
>
> Key: HBASE-22123
> URL: https://issues.apache.org/jira/browse/HBASE-22123
> Project: HBase
> Issue Type: Bug
> Components: REST
> Affects Versions: 2.0.5
> Reporter: Tomas Sokorai
> Assignee: Tomas Sokorai
> Priority: Minor
> Fix For: 3.0.0, 2.2.0, 2.3.0, 2.0.6, 2.1.5
>
> Attachments: HBASE-22123.patch, HBASE-22123_002.patch
>
>
> When a row access is denied due to insufficient permissions, the error thrown
> to the client is 404 Not Found, instead of the proper 403 Forbidden exception.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)