Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-22123

REST gateway reports Insufficient permissions exceptions as 404 Not Found

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.5
    • Fix Version/s: 3.0.0, 2.2.0, 2.3.0, 2.0.6, 2.1.5
    • Component/s: REST
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      Hide
      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
      Show
      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

      Description

      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.

        Attachments

        1. HBASE-22123.patch
          1 kB
          Tomas Sokorai
        2. HBASE-22123_002.patch
          1 kB
          Tomas Sokorai

          Activity

            People

            • Assignee:
              tsokorai Tomas Sokorai
              Reporter:
              tsokorai Tomas Sokorai
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: