Repository: incubator-ranger
Updated Branches:
refs/heads/ranger-0.4 f79476bde -> c5c4d335e
Revert "BUG-32018 : Issue in Hive policy creation in ranger for UDF resource if
we specify {{*}} ( access for all UDF)"
This reverts commit f79476bde51cb9679c442cf80dcbe8b5ccb48c7b.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/88dead26
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/88dead26
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/88dead26
Branch: refs/heads/ranger-0.4
Commit: 88dead26deb617c211d3b0faaa34de2ae46240ac
Parents: f79476b
Author: rmani <[email protected]>
Authored: Fri Feb 20 17:48:05 2015 -0800
Committer: rmani <[email protected]>
Committed: Fri Feb 20 17:48:05 2015 -0800
----------------------------------------------------------------------
.../src/main/java/com/xasecure/biz/AssetMgr.java | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/88dead26/security-admin/src/main/java/com/xasecure/biz/AssetMgr.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/biz/AssetMgr.java
b/security-admin/src/main/java/com/xasecure/biz/AssetMgr.java
index 708d447..521cea7 100644
--- a/security-admin/src/main/java/com/xasecure/biz/AssetMgr.java
+++ b/security-admin/src/main/java/com/xasecure/biz/AssetMgr.java
@@ -284,9 +284,6 @@ public class AssetMgr extends AssetMgrBase {
}
}
- // set the resourceType based on the resource as there is issue
with resourceType coming from UI
- // when resource is UDF
-
vXResource.setResourceType(xPolicyService.getResourceType(vXResource));
vXResource = xResourceService.createResource(vXResource);
@@ -311,7 +308,7 @@ public class AssetMgr extends AssetMgrBase {
@Override
public VXResource updateXResource(VXResource vXResource) {
-
+
UserSessionBase currentUserSession = ContextUtil
.getCurrentUserSession();
if (currentUserSession == null) {
@@ -456,12 +453,7 @@ public class AssetMgr extends AssetMgrBase {
List<XXTrxLog> trxLogList = xResourceService.getTransactionLog(
vXResource, xResouce, "update");
- // set the resourceType based on the resource as there is issue
with resourceType coming from UI
- // when resource is UDF
-
vXResource.setResourceType(xPolicyService.getResourceType(vXResource));
-
VXResource resource = super.updateXResource(vXResource);
-
List<VXPermMap> newPermMapList = vXResource.getPermMapList();
searchCriteria = new SearchCriteria();