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

REST gateway reports Insufficient permissions exceptions as 404 Not Found

    XMLWordPrintableJSON

Details

    • Reviewed
    • 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_002.patch
          1 kB
          Tomas Sokorai
        2. HBASE-22123.patch
          1 kB
          Tomas Sokorai

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: