ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sneet...@apache.org
Subject git commit: ARGUS-72:Agents receive 304 though server has updated policies
Date Tue, 23 Sep 2014 01:30:16 GMT
Repository: incubator-argus
Updated Branches:
  refs/heads/master 3838f13df -> 6ad612029


ARGUS-72:Agents receive 304 though server has updated policies

Signed-off-by: sneethiraj <sneethir@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-argus/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-argus/commit/6ad61202
Tree: http://git-wip-us.apache.org/repos/asf/incubator-argus/tree/6ad61202
Diff: http://git-wip-us.apache.org/repos/asf/incubator-argus/diff/6ad61202

Branch: refs/heads/master
Commit: 6ad612029385a0515f3fca4deec8d3ec7bc309ea
Parents: 3838f13
Author: vperiasamy <vperiasamy@hortonworks.com>
Authored: Mon Sep 22 14:50:23 2014 -0400
Committer: sneethiraj <sneethir@apache.org>
Committed: Mon Sep 22 21:30:01 2014 -0400

----------------------------------------------------------------------
 security-admin/src/main/java/com/xasecure/rest/AssetREST.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/6ad61202/security-admin/src/main/java/com/xasecure/rest/AssetREST.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/rest/AssetREST.java b/security-admin/src/main/java/com/xasecure/rest/AssetREST.java
index 2dd044b..e187a78 100644
--- a/security-admin/src/main/java/com/xasecure/rest/AssetREST.java
+++ b/security-admin/src/main/java/com/xasecure/rest/AssetREST.java
@@ -617,6 +617,7 @@ public class AssetREST {
 			VXResource vXResource = xPolicyService.mapPublicToXAObject(vXPolicy,AbstractBaseResourceService.OPERATION_CREATE_CONTEXT);
 			vXResource=assetMgr.grantXResource(vXResource,vXPolicy);
 			vXResource.setPermMapList(xPolicyService.updatePermGroup(vXResource));
+			xResourceService.updateResource(vXResource);
 			vXPolicy=xPolicyService.mapXAToPublicObject(vXResource);	
 			vXPolicy.syncResponseWithJsonRequest();			
 		}
@@ -645,6 +646,7 @@ public class AssetREST {
 			VXResource vXResource = xPolicyService.mapPublicToXAObject(vXPolicy,AbstractBaseResourceService.OPERATION_CREATE_CONTEXT);
 			vXResource=assetMgr.revokeXResource(vXResource);
 			vXResource.setPermMapList(xPolicyService.updatePermGroup(vXResource));
+			xResourceService.updateResource(vXResource);
 			vXPolicy=xPolicyService.mapXAToPublicObject(vXResource);			
 			vXPolicy.syncResponseWithJsonRequest();		
 		}


Mime
View raw message