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 2019/06/18 17:23:19 UTC
[ranger] branch master updated: RANGER-2473:Upgrade of Ranger Admin
to the current version fails in
PatchForAtlasResourceAndAccessTypeUpdate_J10016
This is an automated email from the ASF dual-hosted git repository.
rmani pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/master by this push:
new 391e2f4 RANGER-2473:Upgrade of Ranger Admin to the current version fails in PatchForAtlasResourceAndAccessTypeUpdate_J10016
391e2f4 is described below
commit 391e2f4359a5450d037f56b190c416af929c7607
Author: rmani <rm...@hortonworks.com>
AuthorDate: Mon Jun 17 18:30:58 2019 -0700
RANGER-2473:Upgrade of Ranger Admin to the current version fails in PatchForAtlasResourceAndAccessTypeUpdate_J10016
Signed-off-by: rmani <rm...@hortonworks.com>
---
.../ranger/patch/PatchForAtlasResourceAndAccessTypeUpdate_J10016.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/security-admin/src/main/java/org/apache/ranger/patch/PatchForAtlasResourceAndAccessTypeUpdate_J10016.java b/security-admin/src/main/java/org/apache/ranger/patch/PatchForAtlasResourceAndAccessTypeUpdate_J10016.java
index eed6a9e..0cc592a 100644
--- a/security-admin/src/main/java/org/apache/ranger/patch/PatchForAtlasResourceAndAccessTypeUpdate_J10016.java
+++ b/security-admin/src/main/java/org/apache/ranger/patch/PatchForAtlasResourceAndAccessTypeUpdate_J10016.java
@@ -216,6 +216,7 @@ public class PatchForAtlasResourceAndAccessTypeUpdate_J10016 extends BaseLoader
RangerPolicy rangerPolicy = new RangerPolicy();
RangerPolicyResourceSignature resourceSignature = new RangerPolicyResourceSignature(rangerPolicy);
xxPolicy.setResourceSignature(resourceSignature.getSignature());
+ xxPolicy.setZoneId(1L);
XXPolicy createdPolicy = daoMgr.getXXPolicy().create(xxPolicy);
XXPolicyItem xxPolicyItem = new XXPolicyItem();