Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-2896

show grant not display grant_time in hive plugin

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.0.0
    • 2.1.0
    • admin, plugins
    • None

    Description

      show grant can not display grant_time, because RANGER-836 pruned the content of policy download.

      When using show grant, grant_time will always be 0.

      In RangerHiveAuthorizer.createHivePrivilegeInfo function, it gets creationDate from policy.getCreateTime().

      if (accessTypes.contains(aclName.toLowerCase()) && (users.contains(hivePrincipal.getName()) || groups.contains(hivePrincipal.getName()))) {
          creationDate = (policy.getCreateTime() == null) ? creationDate : (int) (policy.getCreateTime().getTime()/1000);
          delegateAdmin = (policyItem.getDelegateAdmin() == null) ? delegateAdmin : policyItem.getDelegateAdmin().booleanValue();
      }
      

      Attachments

        1. 0001-RANGER-2896.patch
          1 kB
          Jiayi Liu

        Issue Links

          Activity

            People

              Unassigned Unassigned
              liujiayi771 Jiayi Liu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: