Ignore:
Timestamp:
Apr 10, 2015, 11:12:37 PM (10 years ago)
Author:
djay
Message:

Fix in JS ZOO-API for accessing reference(s).

File:
1 edited

Legend:

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

    r623 r625  
    146146  if (r_inputs != NULL){
    147147    //snprintf (cursor_input, 40960, "%s", r_inputs->value);
    148     cursor_input = zStrdup (r_inputs->value);
     148    if(strstr(r_inputs->value,"=")==NULL)
     149      cursor_input = url_decode (r_inputs->value);
     150    else
     151      cursor_input = zStrdup (r_inputs->value);
    149152    int j = 0;
    150153
     
    11811184int xmlParseRequest(maps** main_conf,const char* post,map** request_inputs,service* s,maps** inputs,maps** outputs,HINTERNET* hInternet){
    11821185  xmlInitParser ();
    1183   fprintf(stderr,"%s %d\n",__FILE__,__LINE__);
    11841186  xmlDocPtr doc = xmlParseMemory (post, cgiContentLength);
    1185   fprintf(stderr,"%s %d\n",__FILE__,__LINE__);
    11861187
    11871188  /**
     
    11981199  }
    11991200  xmlXPathFreeObject (tmpsptr);
    1200   fprintf(stderr,"%s %d\n",__FILE__,__LINE__);
    12011201
    12021202  // Extract ResponseDocument / RawDataOutput from the XML Request
    12031203  tmpsptr =
    12041204    extractFromDoc (doc, "/*/*/*[local-name()='ResponseDocument']");
    1205   fprintf(stderr,"%s %d\n",__FILE__,__LINE__);
    12061205  bool asRaw = false;
    12071206  tmps = tmpsptr->nodesetval;
    12081207  if (tmps->nodeNr == 0)
    12091208    {
    1210       fprintf(stderr,"%s %d\n",__FILE__,__LINE__);
    12111209      xmlXPathFreeObject (tmpsptr);
    12121210      tmpsptr =
     
    12161214    }
    12171215  if(tmps->nodeNr != 0){
    1218     fprintf(stderr,"%s %d\n",__FILE__,__LINE__);
    12191216    if(xmlParseOutputs(main_conf,request_inputs,outputs,doc,tmps->nodeTab[0],asRaw)<0){
    12201217      xmlXPathFreeObject (tmpsptr);
     
    12241221    }
    12251222  }
    1226   fprintf(stderr,"%s %d\n",__FILE__,__LINE__);
    12271223  xmlXPathFreeObject (tmpsptr);
    12281224  xmlFreeDoc (doc);
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