Skip to content

Commit

Permalink
Define mutable to false when not found in the metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
gfenoy committed Aug 22, 2023
1 parent a1a6849 commit efdcbc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zoo-project/zoo-kernel/service_json.c
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ extern "C" {
}
map* sType=getMap(serv->content,"serviceType");
map* pmMutable=getMap(serv->content,"mutable");
if(pmMutable==NULL || strncasecmp(pmMutable->value,"true",4)==0){
if(pmMutable!=NULL && strncasecmp(pmMutable->value,"true",4)==0){
i=2;
limit=6;
}
Expand Down
2 changes: 1 addition & 1 deletion zoo-project/zoo-kernel/zoo_service_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -3939,7 +3939,7 @@ runRequest (map ** inputs)
}else{
// request is synchronous
map* pmMutable=getMap(s1->content,"mutable");
if(pmMutable==NULL || strncasecmp(pmMutable->value,"true",4)==0){
if(pmMutable!=NULL && strncasecmp(pmMutable->value,"true",4)==0){
map* pmError=createMap("code","None");
addToMap(pmError,"message",_("The synchronous mode is not allowed for mutable services."));
localPrintExceptionJ(m,pmError);
Expand Down

0 comments on commit efdcbc5

Please sign in to comment.