From 565312cbb0c68846b874bbc222fce04e2a0eb5a5 Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Tue, 22 Oct 2019 18:56:12 +0200 Subject: [PATCH] fix updateVO method --- .../informationsystem/publisher/RegistryPublisherImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }