minor fix for application profile reader
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@132285 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
bc442f5caf
commit
55311493ba
|
@ -43,8 +43,8 @@ public class ApplicationProfileScopePerUrlReader {
|
||||||
|
|
||||||
logger.debug("Request scope for ckan portlet at url " + url);
|
logger.debug("Request scope for ckan portlet at url " + url);
|
||||||
|
|
||||||
String scopeToReturn = null;
|
|
||||||
String scope = ScopeProvider.instance.get();
|
String scope = ScopeProvider.instance.get();
|
||||||
|
String scopeToReturn = scope;
|
||||||
String rootScopeForInfrastructure = "/" + PortalContext.getConfiguration().getInfrastructureName();
|
String rootScopeForInfrastructure = "/" + PortalContext.getConfiguration().getInfrastructureName();
|
||||||
|
|
||||||
if(url == null || url.isEmpty()){
|
if(url == null || url.isEmpty()){
|
||||||
|
@ -89,7 +89,6 @@ public class ApplicationProfileScopePerUrlReader {
|
||||||
}
|
}
|
||||||
if (!foundScope || scopeToReturn == null || scopeToReturn.isEmpty()){
|
if (!foundScope || scopeToReturn == null || scopeToReturn.isEmpty()){
|
||||||
logger.debug("Scope is missing for url " + url + ". Returning " + scope);
|
logger.debug("Scope is missing for url " + url + ". Returning " + scope);
|
||||||
scopeToReturn = scope;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue