From 5970eda4f093de150755a93817e65dc3c0f18b9c Mon Sep 17 00:00:00 2001 From: Radhika Kundam Date: Thu, 14 Nov 2024 11:32:08 -0800 Subject: [PATCH] RANGER-4997: Ranger DataShare created shows status as ACTIVE instead of the default REQUESTED. Signed-off-by: Ramesh Mani --- .../src/main/java/org/apache/ranger/rest/GdsREST.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security-admin/src/main/java/org/apache/ranger/rest/GdsREST.java b/security-admin/src/main/java/org/apache/ranger/rest/GdsREST.java index f9593b4693..87eb6ea4d0 100755 --- a/security-admin/src/main/java/org/apache/ranger/rest/GdsREST.java +++ b/security-admin/src/main/java/org/apache/ranger/rest/GdsREST.java @@ -1825,7 +1825,7 @@ private Long getOrCreateDataShare(Long datasetId, Long serviceId, Long zoneId, S RangerDataShareInDataset rangerDataShareInDataset = new RangerDataShareInDataset(); rangerDataShareInDataset.setDataShareId(rangerDataShare.getId()); rangerDataShareInDataset.setDatasetId(rangerDataset.getId()); - rangerDataShareInDataset.setStatus(RangerGds.GdsShareStatus.ACTIVE); + rangerDataShareInDataset.setStatus(RangerGds.GdsShareStatus.REQUESTED); rangerDataShareInDatasets.add(rangerDataShareInDataset); addDataSharesInDataset(rangerDataset.getId(), rangerDataShareInDatasets); ret = rangerDataShare.getId();