Ignore:
Timestamp:
Jan 3, 2019, 12:44:57 PM (5 years ago)
Author:
knut
Message:

Added some new logging functionality (function logMessage(), macros zooLog, zooLogMsg). Added utility functions setErrorMessage(), hasvalue(), and nonempty() in service.c. Added enum WPSException and arrays WPSExceptionText and WPSExceptionCode (see also function setErrorMessage). New conditional definition of type bool in service.c (to fix issue with bool). Null pointer check in function addToMap. Added missing return values and explicit type casts in some functions. Removed Windows-specific code in function dumpBackFinalFile (zoo_service_loader.c) that may cause error for async raw data output in formats other than XML.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/response_print.c

    r820 r889  
    26112611    map* tmpIV=getMap(request_inputs1,"RawDataOutput");
    26122612    if(tmpIV!=NULL){
    2613       tmpI=getMaps(request_outputs,tmpIV->value);
     2613      tmpI=getMaps(request_outputs,tmpIV->value);         
    26142614    }
    26152615    if(tmpI==NULL)
    26162616      tmpI=request_outputs;
     2617
    26172618    elements* e=getElements(s->outputs,tmpI->name);
    26182619    if(e!=NULL && strcasecmp(e->format,"BoundingBoxData")==0){
     
    26212622      map *gfile=getMap(tmpI->content,"generated_file");
    26222623      if(gfile!=NULL){
    2623         gfile=getMap(tmpI->content,"expected_generated_file");
     2624        gfile=getMap(tmpI->content,"expected_generated_file"); 
    26242625        if(gfile==NULL){
    26252626          gfile=getMap(tmpI->content,"generated_file");
     
    26272628        readGeneratedFile(m,tmpI->content,gfile->value);
    26282629      }
    2629       toto=getMap(tmpI->content,"value");
     2630      toto=getMap(tmpI->content,"value");       
    26302631      if(toto==NULL){
    26312632        char tmpMsg[1024];
     
    26332634        errorException(m,tmpMsg,"InvalidParameterValue","RawDataOutput");
    26342635        return;
    2635       }
    2636       map* fname=getMapFromMaps(tmpI,tmpI->name,"filename");
     2636      }   
     2637      map* fname=getMapFromMaps(tmpI,tmpI->name,"filename");             
    26372638      if(fname!=NULL)
    26382639        printf("Content-Disposition: attachment; filename=\"%s\"\r\n",fname->value);
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