Ignore:
Timestamp:
Dec 12, 2017, 4:09:47 PM (6 years ago)
Author:
djay
Message:

Add status_code key to the lenv section to support returning a specific HTTP error code from the service code. Fix callback invocation to support inputs arrays at step 1 and 2. Fix issue with cpu usage. Fix issue with mapserver publication when an input is optional. Fix callback invocation at step 7 in case the service has failed on the HPC side.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/prototype-v0/zoo-project/zoo-kernel/response_print.c

    r854 r860  
    24652465  else
    24662466    exceptionCode="501 Internal Server Error";
    2467 
     2467  tmp=getMapFromMaps(m,"lenv","status_code");
     2468  if(tmp!=NULL)
     2469    exceptionCode=tmp->value;
    24682470  if(m!=NULL){
    24692471    map *tmpSid=getMapFromMaps(m,"lenv","sid");
     
    26052607void outputResponse(service* s,maps* request_inputs,maps* request_outputs,
    26062608                    map* request_inputs1,int cpid,maps* m,int res){
    2607                
    26082609#ifdef DEBUG
    26092610  dumpMaps(request_inputs);
     
    26592660    }
    26602661  }
    2661                  
    26622662  if(res==SERVICE_FAILED){
    26632663    map *lenv;
     
    27182718      toto=getMap(tmpI->content,"asReference");
    27192719#ifdef USE_MS
    2720       restartNoMS:
     2720    restartNoMS:
    27212721      map* geodatatype=getMap(tmpI->content,"geodatatype");
    27222722     
     
    27782778
    27792779            toto=getMap(tmpI->content,"value");
     2780            if(toto==NULL){
     2781              char tmpMsg[1024];
     2782              sprintf(tmpMsg,_("No value found for the requested output %s."),tmpI->name);
     2783              errorException(m,tmpMsg,"InternalError",NULL);
     2784              fclose(ofile);
     2785              free(file_name);
     2786              free(file_path);
     2787              return;
     2788            }
    27802789            if(strcasecmp(format,"BoundingBoxData")!=0){
    27812790              map* size=getMap(tmpI->content,"size");
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png