From 84d1fbe91c584dbbaf635bffea6bca5d0b2e1bda Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Tue, 22 Oct 2019 18:45:18 +0200 Subject: [PATCH] added check on root-vo scope --- .../informationsystem/publisher/RegistryPublisherImpl.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/org/gcube/informationsystem/publisher/RegistryPublisherImpl.java b/src/main/java/org/gcube/informationsystem/publisher/RegistryPublisherImpl.java index 0a30ce5..7677093 100644 --- a/src/main/java/org/gcube/informationsystem/publisher/RegistryPublisherImpl.java +++ b/src/main/java/org/gcube/informationsystem/publisher/RegistryPublisherImpl.java @@ -110,6 +110,11 @@ public class RegistryPublisherImpl implements RegistryPublisher { RegistryStub stub = getRegistryStub(); createResource(resource, currentVO, stub); vosScopes.remove(currentVO); + //in this case it is a root-vo scope so we need to create the resource only at root-vo level + }else{ + RegistryStub stub = getRegistryStub(); + createResource(resource, currentVO, stub); + return resource; } // update the resource for each VO for (String voScope: vosScopes){