Ignore:
Timestamp:
Jun 26, 2015, 2:07:46 PM (9 years ago)
Author:
djay
Message:

Fix GetResult? and POST asynchronous requests on Windows. Prevent CONTENT_TYPE=text/xml before creating the process using CreateProcess?. Revert modifications made r587 for using url_decode directly inside zoo_loader.c, the url_decode call should be in kvpParseInputs (from request_parser.c), indeed, there should not be any decoding required in other cases than Execute requests. Fix issue in mapsFromPyDict, small changes in mapFromPyDict to fix parsing result value (only) for Python 3.

File:
1 edited

Legend:

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

    r680 r682  
    17451745  }
    17461746 
    1747   if(vid==0 && hasStoredExecuteResponse==true && status!=SERVICE_STARTED && status!=SERVICE_ACCEPTED){
     1747  if(vid==0 &&
     1748     hasStoredExecuteResponse==true
     1749     && status!=SERVICE_STARTED
     1750#ifndef WIN32
     1751     && status!=SERVICE_ACCEPTED
     1752#endif
     1753     ){
    17481754#ifndef RELY_ON_DB
    17491755    semid lid=acquireLock(m);//,1);
     
    23342340  map* version=getMapFromMaps(m,"main","rversion");
    23352341  int vid=getVersionId(version->value);
    2336  
     2342
    23372343  maps* tmpSess=getMaps(m,"senv");
    23382344  if(tmpSess!=NULL){
     
    23752381    else{
    23762382      fclose(teste);
    2377       dumpMapsToFile(tmpSess,session_file_path);
     2383      dumpMapsToFile(tmpSess,session_file_path,1);
    23782384    }
    23792385  }
     
    24412447          elements* in=getElements(s->outputs,tmpI->name);
    24422448          char *format=NULL;
    2443           if(in!=NULL){
    2444             format=strdup(in->format);
     2449          if(in!=NULL && in->format!=NULL){
     2450            format=zStrdup(in->format);
    24452451          }else
    2446             format=strdup("LiteralData");
     2452            format=zStrdup("LiteralData");
    24472453          if(strcasecmp(format,"BoundingBoxData")==0){
    24482454            addToMap(tmpI->content,"extension","xml");
     
    24662472              getFileExtension(mtype != NULL ? mtype->value : NULL, file_ext, 32);
    24672473            }
    2468                
     2474
    24692475            file_name=(char*)malloc((strlen(s->name)+strlen(usid->value)+strlen(file_ext)+strlen(tmpI->name)+45)*sizeof(char));
    24702476            sprintf(file_name,"%s_%s_%s_%d.%s",s->name,tmpI->name,usid->value,itn,file_ext);
     
    24722478            file_path=(char*)malloc((strlen(tmp1->value)+strlen(file_name)+2)*sizeof(char));
    24732479            sprintf(file_path,"%s/%s",tmp1->value,file_name);
    2474    
     2480
    24752481            FILE *ofile=fopen(file_path,"wb");
    24762482            if(ofile==NULL){
     
    24982504
    24992505          }
     2506
    25002507          map *tmp2=getMapFromMaps(m,"main","tmpUrl");
    25012508          map *tmp3=getMapFromMaps(m,"main","serverAddress");
     
    25092516            sprintf(file_url,"%s/%s/%s",tmp3->value,tmp2->value,file_name);
    25102517          }
     2518
    25112519          addToMap(tmpI->content,"Reference",file_url);
    25122520          free(format);
    25132521          free(file_name);
    2514           free(file_url);       
     2522          free(file_url);
    25152523         
    25162524        }
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