Return-Path: X-Original-To: apmail-argus-commits-archive@minotaur.apache.org Delivered-To: apmail-argus-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 07D9211B0D for ; Tue, 23 Sep 2014 01:30:38 +0000 (UTC) Received: (qmail 91197 invoked by uid 500); 23 Sep 2014 01:30:37 -0000 Delivered-To: apmail-argus-commits-archive@argus.apache.org Received: (qmail 91179 invoked by uid 500); 23 Sep 2014 01:30:37 -0000 Mailing-List: contact commits-help@argus.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@argus.incubator.apache.org Delivered-To: mailing list commits@argus.incubator.apache.org Received: (qmail 91170 invoked by uid 99); 23 Sep 2014 01:30:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Sep 2014 01:30:37 +0000 X-ASF-Spam-Status: No, hits=-2000.8 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 23 Sep 2014 01:30:36 +0000 Received: (qmail 90858 invoked by uid 99); 23 Sep 2014 01:30:16 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Sep 2014 01:30:16 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 42E5F8A6A5B; Tue, 23 Sep 2014 01:30:16 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sneethir@apache.org To: commits@argus.incubator.apache.org Message-Id: <82dc6bbd3f554813959549b057536fb2@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: ARGUS-72:Agents receive 304 though server has updated policies Date: Tue, 23 Sep 2014 01:30:16 +0000 (UTC) X-Virus-Checked: Checked by ClamAV on apache.org Repository: incubator-argus Updated Branches: refs/heads/master 3838f13df -> 6ad612029 ARGUS-72:Agents receive 304 though server has updated policies Signed-off-by: sneethiraj 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 Authored: Mon Sep 22 14:50:23 2014 -0400 Committer: sneethiraj 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(); }