Repository: incubator-sentry Updated Branches: refs/heads/master 05a239dad -> 7a8645f0c
SENTRY-416: TestConfigTool.testQueryPermissions regressed (Sravya Tirukkovalur via Prasad Mujumdar) Project: http://git-wip-us.apache.org/repos/asf/incubator-sentry/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-sentry/commit/7a8645f0 Tree: http://git-wip-us.apache.org/repos/asf/incubator-sentry/tree/7a8645f0 Diff: http://git-wip-us.apache.org/repos/asf/incubator-sentry/diff/7a8645f0 Branch: refs/heads/master Commit: 7a8645f0c459b6e091135fc45b343fdf5b2c8251 Parents: 05a239d Author: Prasad Mujumdar <[email protected]> Authored: Sun Sep 7 10:47:11 2014 -0700 Committer: Prasad Mujumdar <[email protected]> Committed: Sun Sep 7 10:47:11 2014 -0700 ---------------------------------------------------------------------- .../java/org/apache/sentry/binding/hive/HiveAuthzBindingHook.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/7a8645f0/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/HiveAuthzBindingHook.java ---------------------------------------------------------------------- diff --git a/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/HiveAuthzBindingHook.java b/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/HiveAuthzBindingHook.java index e9c9c0d..a760516 100644 --- a/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/HiveAuthzBindingHook.java +++ b/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/HiveAuthzBindingHook.java @@ -316,7 +316,7 @@ public class HiveAuthzBindingHook extends AbstractSemanticAnalyzerHook { for (String perm : hiveAuthzBinding.getLastQueryPrivilegeErrors()) { permsRequired += perm + ";"; } - context.getConf().set(HiveAuthzConf.HIVE_SENTRY_AUTH_ERRORS, permsRequired); + SessionState.get().getConf().set(HiveAuthzConf.HIVE_SENTRY_AUTH_ERRORS, permsRequired); throw new SemanticException(HiveAuthzConf.HIVE_SENTRY_PRIVILEGE_ERROR_MESSAGE, e); } if ("true".equalsIgnoreCase(context.getConf().
