You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by pr...@apache.org on 2022/08/09 06:41:57 UTC

[ranger] branch ranger-2.4 updated: RANGER-3824: Tag resource API error message is not proper for duplicate resource & not able to update resource resource

This is an automated email from the ASF dual-hosted git repository.

pradeep pushed a commit to branch ranger-2.4
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/ranger-2.4 by this push:
     new e8f007c80 RANGER-3824: Tag resource API error message is not proper for duplicate resource & not able to update resource resource
e8f007c80 is described below

commit e8f007c80b80bd56803ce9857791851e7d8f864e
Author: pradeep <pr...@apache.org>
AuthorDate: Thu Jul 14 11:54:03 2022 +0530

    RANGER-3824: Tag resource API error message is not proper for duplicate resource & not able to update resource resource
---
 .../src/main/java/org/apache/ranger/plugin/store/TagValidator.java       | 1 +
 1 file changed, 1 insertion(+)

diff --git a/agents-common/src/main/java/org/apache/ranger/plugin/store/TagValidator.java b/agents-common/src/main/java/org/apache/ranger/plugin/store/TagValidator.java
index 08b1e45fd..699e49e17 100644
--- a/agents-common/src/main/java/org/apache/ranger/plugin/store/TagValidator.java
+++ b/agents-common/src/main/java/org/apache/ranger/plugin/store/TagValidator.java
@@ -150,6 +150,7 @@ public class TagValidator {
 		if (ret == null) {
 			RangerServiceResourceSignature serializer = new RangerServiceResourceSignature(resource);
 			resource.setResourceSignature(serializer.getSignature());
+			ret = tagStore.getServiceResourceByServiceAndResourceSignature(resource.getServiceName(), resource.getResourceSignature());
 		}
 
 		return ret;