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

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.1.0
    • None
    • None
    • 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_v2.patch
          1.0 kB
          Rajeshbabu Chintaguntla
        2. HBASE-20635.patch
          5 kB
          Rajeshbabu Chintaguntla
        3. PHOENIX-4528_5.x-HBase-2.0_v2.patch
          17 kB
          Rajeshbabu Chintaguntla

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: