Patched the method DataCatalogueImpl#gePortletUrl

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@174073 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2018-11-09 10:56:42 +00:00
parent 9ea6a33240
commit 3c92810540
1 changed files with 3 additions and 1 deletions

View File

@ -189,7 +189,9 @@ public class DataCatalogueImpl implements DataCatalogue{
}else{
//ADDING VRE NAME AND THE SUFFIX 'CATALOGUE_TAB_ENDING_URL' TO URL
String buildedUrl = PORTLET_URL_FOR_SCOPE.endsWith("/") ? PORTLET_URL_FOR_SCOPE : PORTLET_URL_FOR_SCOPE + "/";
buildedUrl += vreNameLower + CATALOGUE_TAB_ENDING_URL;
String defaultSuffix = vreNameLower + CATALOGUE_TAB_ENDING_URL;
buildedUrl+= defaultSuffix;
logger.warn("The Portlet URL read from Generic Resource 'Ckan-Porltet' does not contain the portlet suffix added the default: "+defaultSuffix);
return buildedUrl;
}
}