summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorpkaras <piotr.karas@nokia.com>2019-05-14 08:39:06 +0200
committerDominic Lunanuova <dgl@research.att.com>2019-05-14 12:51:15 +0000
commit715872f016751eb1ba7fb0045a7fc3fc34bf2327 (patch)
tree8705de9c356b240e2e208a5aa007decb17eb1631 /src/main
parent9a8bdf20dbaf2f7e5ad473a60f9b083505ad908c (diff)
Problem in building AAF permission - fix
Change-Id: If3c16d950ebe21d4f922b2e8f074e29ded26e9ce Issue-ID: DMAAP-1200 Signed-off-by: piotr.karas <piotr.karas@nokia.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/onap/dmaap/dbcapi/util/PermissionBuilder.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/java/org/onap/dmaap/dbcapi/util/PermissionBuilder.java b/src/main/java/org/onap/dmaap/dbcapi/util/PermissionBuilder.java
index 44c94af..d1f6b2b 100644
--- a/src/main/java/org/onap/dmaap/dbcapi/util/PermissionBuilder.java
+++ b/src/main/java/org/onap/dmaap/dbcapi/util/PermissionBuilder.java
@@ -73,11 +73,8 @@ public class PermissionBuilder {
private String getPermissionType(String pathInfo) {
char pathSeparator = '/';
- String relativePath = (pathInfo.charAt(pathInfo.length()-1) == pathSeparator) ?
- pathInfo.substring(0,pathInfo.length()-1) : pathInfo;
-
- String[] pathSlices = relativePath.split(String.valueOf(pathSeparator));
- return pathSlices[pathSlices.length-1];
+ String[] pathSlices = pathInfo.split(String.valueOf(pathSeparator));
+ return pathSlices[1];
}
String getInstance() {