You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by rm...@apache.org on 2017/06/05 21:37:26 UTC

ranger git commit: RANGER-1631 : create temp function failing with permission issues

Repository: ranger
Updated Branches:
  refs/heads/master 2a5b55e1b -> 2e193e124


RANGER-1631 : create temp function failing with permission issues


Project: http://git-wip-us.apache.org/repos/asf/ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/2e193e12
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/2e193e12
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/2e193e12

Branch: refs/heads/master
Commit: 2e193e124399cf685c17798b8243e1d62f223315
Parents: 2a5b55e
Author: rmani <rm...@hortonworks.com>
Authored: Mon Jun 5 10:37:57 2017 -0700
Committer: rmani <rm...@hortonworks.com>
Committed: Mon Jun 5 14:36:50 2017 -0700

----------------------------------------------------------------------
 .../ranger/authorization/hive/authorizer/RangerHiveResource.java  | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/2e193e12/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveResource.java
----------------------------------------------------------------------
diff --git a/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveResource.java b/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveResource.java
index 3f1279f..d04d3bf 100644
--- a/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveResource.java
+++ b/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveResource.java
@@ -50,6 +50,9 @@ public class RangerHiveResource extends RangerAccessResourceImpl {
 			break;
 	
 			case FUNCTION:
+				if (databaseorUrl == null) {
+					databaseorUrl = "";
+				}
 				setValue(KEY_DATABASE, databaseorUrl);
 				setValue(KEY_UDF, tableOrUdf);
 			break;