From 84fc74efbdd3b8343aaeba13df42accefe5493db Mon Sep 17 00:00:00 2001 From: Instrumental Date: Fri, 28 Jun 2019 17:16:33 -0500 Subject: Updates for DirectLocator Issue-ID: AAF-857 Change-Id: I55cdedad9dfaf4be8c785aa5f503f71fe4504070 Signed-off-by: Instrumental --- .../src/main/java/org/onap/aaf/auth/direct/DirectAAFLocator.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'auth/auth-cass/src/main') diff --git a/auth/auth-cass/src/main/java/org/onap/aaf/auth/direct/DirectAAFLocator.java b/auth/auth-cass/src/main/java/org/onap/aaf/auth/direct/DirectAAFLocator.java index 98459672..2f1d150c 100644 --- a/auth/auth-cass/src/main/java/org/onap/aaf/auth/direct/DirectAAFLocator.java +++ b/auth/auth-cass/src/main/java/org/onap/aaf/auth/direct/DirectAAFLocator.java @@ -73,9 +73,11 @@ public class DirectAAFLocator extends AbsAAFLocator { } try { - String aaf_url = access.getProperty(Config.AAF_URL, null); - if(aaf_url==null) { - aaf_url = "https://"+Config.AAF_LOCATE_URL_TAG+"/%NS."+name; + String aaf_url; + if(name.indexOf('.')>=0) { + aaf_url = "https://"+Config.AAF_LOCATE_URL_TAG+'/'+name+':'+version; + } else { + aaf_url = "https://"+Config.AAF_LOCATE_URL_TAG+"/%NS."+name+':'+version; } RegistrationPropHolder rph = new RegistrationPropHolder(access,0); aaf_url = rph.replacements(getClass().getSimpleName(),aaf_url, null,null); -- cgit 1.2.3-korg