bug fixing overriding of the scope
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-transfer/uri-resolver@179453 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
775a9c5d86
commit
3491fa0bc6
|
@ -188,7 +188,8 @@ public class CatalogueResolver {
|
|||
if(scopeBean.is(Type.VO)) {
|
||||
logger.info("It is a {} scope", Type.VO);
|
||||
logger.warn("The Catalogue can't work at {} level, I'm overriding the scope to {} level", Type.VO, Type.INFRASTRUCTURE);
|
||||
fullScope = fullScope.substring(1, fullScope.indexOf("/")); //skypping the first slash
|
||||
String[] splitScope = fullScope.split("/");
|
||||
fullScope = splitScope[1]; //THIS IS THE INFRASTRUCTURE SCOPE
|
||||
logger.info("Overriden the input scope {} with {} as type: {}", fullScope, Type.INFRASTRUCTURE, fullScope);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue