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

Support to convert the shaded user permission proto to client user permission object

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0, 2.1.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Currently we have API to build the protobuf UserPermission to client user permission in AccessControlUtil but we cannot do the same when we use shaded protobufs.

        /**
         * Converts a user permission proto to a client user permission object.
         *
         * @param proto the protobuf UserPermission
         * @return the converted UserPermission
         */
        public static UserPermission toUserPermission(AccessControlProtos.UserPermission proto) {
          return new UserPermission(proto.getUser().toByteArray(),
              toTablePermission(proto.getPermission()));
        }
      

        Attachments

        1. HBASE-20635.patch
          5 kB
          Rajeshbabu Chintaguntla
        2. PHOENIX-4528_5.x-HBase-2.0_v2.patch
          17 kB
          Rajeshbabu Chintaguntla
        3. HBASE-20635_v2.patch
          1.0 kB
          Rajeshbabu Chintaguntla

          Activity

            People

            • Assignee:
              rajeshbabu Rajeshbabu Chintaguntla
              Reporter:
              rajeshbabu Rajeshbabu Chintaguntla
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: