diff --git a/pom.xml b/pom.xml index 313c877..bf5e491 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ org.gcube.resources registry-publisher - 1.3.0 + 1.3.1-SNAPSHOT diff --git a/src/main/java/org/gcube/informationsystem/publisher/utils/ValidationUtils.java b/src/main/java/org/gcube/informationsystem/publisher/utils/ValidationUtils.java index 0310951..fc7e110 100644 --- a/src/main/java/org/gcube/informationsystem/publisher/utils/ValidationUtils.java +++ b/src/main/java/org/gcube/informationsystem/publisher/utils/ValidationUtils.java @@ -86,11 +86,11 @@ public class ValidationUtils { }else if(new ScopeBean(scope).is(Type.VO)){ log.debug(" "+scope+" is a VO scope"); if(anotherSonVREOnResource(resource, scope)){ - throw new IllegalArgumentException("the resource "+resource.id()+" have another scope defined in the same VO. The VO is "+scope); + return false; //throw new IllegalArgumentException("the resource "+resource.id()+" have another scope defined in the same VO. The VO is "+scope); }else return true; }else{ // is a INFRA scope if(anotherInfraScopeOnResource(resource, scope)){ - throw new IllegalArgumentException("the resource "+resource.id()+" have another scope defined in the same INFRA. The INFRA is "+scope); + return false; //throw new IllegalArgumentException("the resource "+resource.id()+" have another scope defined in the same INFRA. The INFRA is "+scope); }else return true; } }