You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by "Dapeng Sun (JIRA)" <ji...@apache.org> on 2015/06/23 10:15:00 UTC
[jira] [Updated] (SENTRY-777) SentryServiceIntegrationBase#after()
should be run under client subject
[ https://issues.apache.org/jira/browse/SENTRY-777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dapeng Sun updated SENTRY-777:
------------------------------
Description:
{noformat}
@After
public void after() throws Exception {
if (client != null) {
Set<TSentryRole> tRoles = client.listRoles(ADMIN_USER);
if (tRoles != null) {
for (TSentryRole tRole : tRoles) {
client.dropRole(ADMIN_USER, tRole.getRoleName());
}
}
client.close();
}
policyFilePath.delete();
}
{noformat}
client in {{after()}} isn't run under client subject, if client need client subject, for example , in Kerberos mode, it will throw an exception.
was:
{noformat}
@After
public void after() throws Exception {
if (client != null) {
Set<TSentryRole> tRoles = client.listRoles(ADMIN_USER);
if (tRoles != null) {
for (TSentryRole tRole : tRoles) {
client.dropRole(ADMIN_USER, tRole.getRoleName());
}
}
client.close();
}
policyFilePath.delete();
}
{noformat}
client in {{close}} isn't run under client subject, if client need client subject, for example , in Kerberos mode, it will throw an exception.
> SentryServiceIntegrationBase#after() should be run under client subject
> -----------------------------------------------------------------------
>
> Key: SENTRY-777
> URL: https://issues.apache.org/jira/browse/SENTRY-777
> Project: Sentry
> Issue Type: Bug
> Reporter: Dapeng Sun
> Assignee: Dapeng Sun
>
> {noformat}
> @After
> public void after() throws Exception {
> if (client != null) {
> Set<TSentryRole> tRoles = client.listRoles(ADMIN_USER);
> if (tRoles != null) {
> for (TSentryRole tRole : tRoles) {
> client.dropRole(ADMIN_USER, tRole.getRoleName());
> }
> }
> client.close();
> }
> policyFilePath.delete();
> }
> {noformat}
> client in {{after()}} isn't run under client subject, if client need client subject, for example , in Kerberos mode, it will throw an exception.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)