fix method vosCreate: now the resource is filled with the input scopes
before the checking on the vo scopes
This commit is contained in:
parent
108c194bf2
commit
8c5b74c444
|
@ -88,7 +88,6 @@ public class RegistryPublisherImpl implements RegistryPublisher {
|
||||||
log.debug("id generated: "+id);
|
log.debug("id generated: "+id);
|
||||||
ResourceMediator.setId(resource, id);
|
ResourceMediator.setId(resource, id);
|
||||||
}
|
}
|
||||||
HashSet<String> vosScopes = updateResourceScopes(resource);
|
|
||||||
// add the new scopes
|
// add the new scopes
|
||||||
for(String scope: scopes){
|
for(String scope: scopes){
|
||||||
log.debug("[VOCREATE] new scope added {}",scope);
|
log.debug("[VOCREATE] new scope added {}",scope);
|
||||||
|
@ -101,6 +100,7 @@ public class RegistryPublisherImpl implements RegistryPublisher {
|
||||||
log.error("the resource is not valid", e);
|
log.error("the resource is not valid", e);
|
||||||
throw new IllegalArgumentException("the resource is not valid ", e.getCause());
|
throw new IllegalArgumentException("the resource is not valid ", e.getCause());
|
||||||
}
|
}
|
||||||
|
HashSet<String> vosScopes = updateResourceScopes(resource);
|
||||||
try{
|
try{
|
||||||
if(currentScope != null){
|
if(currentScope != null){
|
||||||
// checking the current scope: if the operation fails in the current VO it will give an exception, if it fails in another VO no exception will be given
|
// checking the current scope: if the operation fails in the current VO it will give an exception, if it fails in another VO no exception will be given
|
||||||
|
|
Loading…
Reference in New Issue