diff options
author | 2018-09-17 14:43:23 +0000 | |
---|---|---|
committer | 2018-09-17 14:43:23 +0000 | |
commit | 417dd58bd32b95c000c7802e6b6bee8611962f46 (patch) | |
tree | 2df1703d549d71dd3d1850b09e85c329db316e60 /src/main/java/com/att/dmf/mr/service/impl/TopicServiceImpl.java | |
parent | 961111d365e34163334fb3dbf34222ac354d8a3c (diff) | |
parent | 25a928b80256f30e2c71ca20753f2fee0417f841 (diff) |
Merge changes Iadb3f456,Id963a5fd,Ib053c8e7
* changes:
Sonar Major issues
Sonar Major issues
Sonar Major issues
Diffstat (limited to 'src/main/java/com/att/dmf/mr/service/impl/TopicServiceImpl.java')
-rw-r--r-- | src/main/java/com/att/dmf/mr/service/impl/TopicServiceImpl.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/att/dmf/mr/service/impl/TopicServiceImpl.java b/src/main/java/com/att/dmf/mr/service/impl/TopicServiceImpl.java index 29c7665..cef646e 100644 --- a/src/main/java/com/att/dmf/mr/service/impl/TopicServiceImpl.java +++ b/src/main/java/com/att/dmf/mr/service/impl/TopicServiceImpl.java @@ -347,12 +347,12 @@ public class TopicServiceImpl implements TopicService { if (user == null && null != dmaapContext.getRequest().getHeader("Authorization")) { LOGGER.info("Authenticating the user, as ACL authentication is not provided"); // String permission = - // "com.att.dmaap.mr.topic"+"|"+topicName+"|"+"manage"; + String permission = ""; String nameSpace = topicName.substring(0, topicName.lastIndexOf(".")); String mrFactoryVal = AJSCPropertiesMap.getProperty(CambriaConstants.msgRtr_prop, "msgRtr.topicfactory.aaf"); - // String tokens[] = topicName.split(".mr.topic."); + permission = mrFactoryVal + nameSpace + "|destroy"; DMaaPAAFAuthenticator aaf = new DMaaPAAFAuthenticatorImpl(); if (!aaf.aafAuthentication(dmaapContext.getRequest(), permission)) { @@ -502,7 +502,7 @@ public class TopicServiceImpl implements TopicService { // - // if(!aaf.aafAuthentication(dmaapContext.getRequest(), permission)) + // { // LOGGER.error("Failed to permit write access to producer [" + // producerId + "] for topic " + topicName @@ -512,7 +512,7 @@ public class TopicServiceImpl implements TopicService { // errorMessages.getNotPermitted1()+" <Grant publish permissions> - // throw new DMaaPAccessDeniedException(errRes); + // } // } |