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){