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

show grant not display grant_time in hive plugin

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              liujiayi771 Jiayi Liu

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment