ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject ranger git commit: RANGER-1631 : create temp function failing with permission issues
Date Mon, 05 Jun 2017 21:37:26 GMT
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 <rmani@hortonworks.com>
Authored: Mon Jun 5 10:37:57 2017 -0700
Committer: rmani <rmani@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;


Mime
View raw message