From ed50daf19964b6193fbbf17984fa9b54bfde32eb Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Tue, 10 Dec 2019 11:18:43 +0100 Subject: [PATCH] upgrade to 1.3.1-SNAPSHOT version bug fix #18244 --- pom.xml | 2 +- .../informationsystem/publisher/utils/ValidationUtils.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; } }