From 5e45fd82d62e4dda829cdbec2e34d94568ba97ea Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Tue, 22 Oct 2019 18:53:49 +0200 Subject: [PATCH] added check on root-vo scope in the update case --- .../informationsystem/publisher/RegistryPublisherImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/org/gcube/informationsystem/publisher/RegistryPublisherImpl.java b/src/main/java/org/gcube/informationsystem/publisher/RegistryPublisherImpl.java index 7677093..d44bccb 100644 --- a/src/main/java/org/gcube/informationsystem/publisher/RegistryPublisherImpl.java +++ b/src/main/java/org/gcube/informationsystem/publisher/RegistryPublisherImpl.java @@ -237,7 +237,13 @@ public class RegistryPublisherImpl implements RegistryPublisher { ScopeProvider.instance.set(currentVO); registryUpdate(resource, 0); 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); + return resource; } + int tries=0; for (String voScope: vosScopes){ log.debug("[VOUPDATE] check update operation on scope {} ",voScope);