You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ab...@apache.org on 2019/07/19 18:14:10 UTC
[ranger] branch master updated: RANGER-2511: default tag based
service is getting created for the tag based service
This is an automated email from the ASF dual-hosted git repository.
abhay 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 258a591 RANGER-2511: default tag based service is getting created for the tag based service
258a591 is described below
commit 258a59109a04bfa14e694a193b7cbf441d477371
Author: Abhay Kulkarni <ab...@apache.org>
AuthorDate: Fri Jul 19 11:13:57 2019 -0700
RANGER-2511: default tag based service is getting created for the tag based service
---
security-admin/src/main/java/org/apache/ranger/rest/ServiceREST.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/security-admin/src/main/java/org/apache/ranger/rest/ServiceREST.java b/security-admin/src/main/java/org/apache/ranger/rest/ServiceREST.java
index 0c7d852..990fc2b 100644
--- a/security-admin/src/main/java/org/apache/ranger/rest/ServiceREST.java
+++ b/security-admin/src/main/java/org/apache/ranger/rest/ServiceREST.java
@@ -704,7 +704,7 @@ public class ServiceREST {
}
bizUtil.blockAuditorRoleUser();
- if (StringUtils.isBlank(service.getTagService()) && xxServiceDef != null && !xxServiceDef.getId().equals(EmbeddedServiceDefsUtil.EMBEDDED_SERVICEDEF_TAG_NAME)) {
+ if (StringUtils.isBlank(service.getTagService()) && xxServiceDef != null && !StringUtils.equals(EmbeddedServiceDefsUtil.EMBEDDED_SERVICEDEF_TAG_NAME, xxServiceDef.getName())) {
if (LOG.isDebugEnabled()) {
LOG.debug("Tag service may need to be created and linked with this service:[" + service.getName() + "]");
}