added check on root-vo scope in the update case

This commit is contained in:
Roberto Cirillo 2019-10-22 18:53:49 +02:00
parent 84d1fbe91c
commit 5e45fd82d6
1 changed files with 6 additions and 0 deletions

View File

@ -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);