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

grant with an empty string as permission should throw an exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.95.2
    • 0.94.7, 0.95.1
    • security
    • None

    Description

      If someone specify an empty permission

      grant 'user', ''

      AccessControlLists.addUserPermission() output a log message and doesn't change the permission, but the user doesn't know about it.

      if ((actions == null) || (actions.length == 0)) {
        LOG.warn("No actions associated with user '"+Bytes.toString(userPerm.getUser())+"'");
        return;
      }
      

      I think we should throw an exception instead of just logging.

      Attachments

        1. HBASE-7658-0.94.patch
          3 kB
          Matteo Bertozzi
        2. HBASE-7658-v0.patch
          2 kB
          Matteo Bertozzi
        3. HBASE-7658-v1.patch
          3 kB
          Matteo Bertozzi

        Activity

          People

            mbertozzi Matteo Bertozzi
            mbertozzi Matteo Bertozzi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: