You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by "Shreepadma Venugopalan (JIRA)" <ji...@apache.org> on 2014/03/08 02:17:47 UTC

[jira] [Updated] (SENTRY-138) Use server timestamp for createTime for role, privilege and group

     [ https://issues.apache.org/jira/browse/SENTRY-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shreepadma Venugopalan updated SENTRY-138:
------------------------------------------

    Description: 
Server should over write the timestamp that's passed by the client. 

Following structs include a timestamp,

{noformat}
public class MSentryRole {

  private String roleName;
  // set of privileges granted to this role
  private Set<MSentryPrivilege> privileges;
  // set of groups this role belongs to
  private Set<MSentryGroup> groups;
  private long createTime;
  private String grantorPrincipal;
  ...
}
{noformat}

{noformat}
public class MSentryPrivilege {

  String privilegeScope;
  String privilegeName;
  String serverName;
  String dbName;
  String tableName;
  String URI;
  String action;
  // roles this privilege is a part of
  Set<MSentryRole> roles;
  long createTime;
  String grantorPrincipal;
   ...

}
{noformat}

  was:
Server should over write the timestamp that's passed by the client. 

Following structs include a timestamp,

public class MSentryRole {

  private String roleName;
  // set of privileges granted to this role
  private Set<MSentryPrivilege> privileges;
  // set of groups this role belongs to
  private Set<MSentryGroup> groups;
  private long createTime;
  private String grantorPrincipal;
  ...
}

public class MSentryPrivilege {

  String privilegeScope;
  String privilegeName;
  String serverName;
  String dbName;
  String tableName;
  String URI;
  String action;
  // roles this privilege is a part of
  Set<MSentryRole> roles;
  long createTime;
  String grantorPrincipal;
   ...

}


> Use server timestamp for createTime for role, privilege and group
> -----------------------------------------------------------------
>
>                 Key: SENTRY-138
>                 URL: https://issues.apache.org/jira/browse/SENTRY-138
>             Project: Sentry
>          Issue Type: Sub-task
>            Reporter: Shreepadma Venugopalan
>
> Server should over write the timestamp that's passed by the client. 
> Following structs include a timestamp,
> {noformat}
> public class MSentryRole {
>   private String roleName;
>   // set of privileges granted to this role
>   private Set<MSentryPrivilege> privileges;
>   // set of groups this role belongs to
>   private Set<MSentryGroup> groups;
>   private long createTime;
>   private String grantorPrincipal;
>   ...
> }
> {noformat}
> {noformat}
> public class MSentryPrivilege {
>   String privilegeScope;
>   String privilegeName;
>   String serverName;
>   String dbName;
>   String tableName;
>   String URI;
>   String action;
>   // roles this privilege is a part of
>   Set<MSentryRole> roles;
>   long createTime;
>   String grantorPrincipal;
>    ...
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)