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

show grant not display grant_time in hive plugin

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.1.0
    • Component/s: admin, plugins
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: