diff --git a/src/main/java/org/gcube/informationsystem/publisher/RegistryPublisherImpl.java b/src/main/java/org/gcube/informationsystem/publisher/RegistryPublisherImpl.java index d44bccb..3ae7fa7 100644 --- a/src/main/java/org/gcube/informationsystem/publisher/RegistryPublisherImpl.java +++ b/src/main/java/org/gcube/informationsystem/publisher/RegistryPublisherImpl.java @@ -239,8 +239,8 @@ public class RegistryPublisherImpl implements RegistryPublisher { vosScopes.remove(currentVO); // in this case it is a root-vo scope so we need to update the resource only at root-vo level }else{ - RegistryStub stub = getRegistryStub(); - createResource(resource, currentVO, stub); + ScopeProvider.instance.set(currentScope); + registryUpdate(resource, 0); return resource; }