Ignore:
Timestamp:
Aug 7, 2017, 2:56:24 PM (7 years ago)
Author:
djay
Message:

Update the source code for HPC support. Automatically adding nested outputs for the HPC support (should this be available for every support?). Add capability to store the metadata in the Collection DataBase?. Addition of the zcfg2sql to import any existing ZCFG file into the Collection DB. Add the support to invoke a callback (for history purpose) in case a [callback] section contains at least one parameter defined (url). Add support to convert maps and map to JSON (for callback use only by now). Fix some memory leaks (some are still there).

File:
1 edited

Legend:

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

    r802 r839  
    533533            xmlChar *val = xmlGetProp (cur, BAD_CAST "id");
    534534            tmpmaps = createMaps((char *) val);
     535            xmlFree(val);
    535536          }
    536537
     
    624625                            tmpmaps->content =
    625626                              createMap (refs[l], (char *) val);
    626 
    627627                          map *ltmp = getMap (tmpmaps->content, "method");
    628628                          if (l == 4 )
     
    750750                                      map *btmp =
    751751                                        getMap (tmpmaps->content, "Reference");
     752                                      addToMap (tmpmaps->content, "Body", tmp);
    752753                                      if (btmp != NULL)
    753754                                        {
     
    815816                                                  &bRead);
    816817                                tmp[bInternet.ihandle[0].nDataLen] = 0;
    817                                 InternetCloseHandle (&bInternet);
     818                                InternetCloseHandle(&bInternet);
     819                                addToMap (tmpmaps->content, "Body", tmp);
    818820                                map *btmp =
    819821                                  getMap (tmpmaps->content, "href");
     
    832834                                  }
    833835                                free (tmp);
     836                                xmlFree (val);
    834837                              }
    835838                        }
     
    11201123      const char ress[4][13] =
    11211124        { "mimeType", "encoding", "schema", "transmission" };
     1125      xmlFree (val);
    11221126      for (l = 0; l < 4; l++){
    11231127        val = xmlGetProp (cur, BAD_CAST ress[l]);
     
    11391143        while (ccur != NULL){
    11401144          if(ccur->type == XML_ELEMENT_NODE){
    1141             char *xpathExpr=(char*)malloc(65+strlen(tmpmaps->name));
    1142             sprintf(xpathExpr,"/*/*[local-name()='Output' and @id='%s']/*[local-name()='Output']",tmpmaps->name);
     1145            char *xpathExpr=(char*)malloc(66+strlen(tmpmaps->name));
     1146            sprintf(xpathExpr,"/*/*[local-name()='Output' and @id='%s']/*[local-name()='Output']",tmpmaps->name);           
    11431147            xmlXPathObjectPtr tmpsptr = extractFromDoc (doc, xpathExpr);
    11441148            xmlNodeSet* cnodes = tmpsptr->nodesetval;
    11451149            xmlParseOutputs2(main_conf,request_inputs,&tmpmaps->child,doc,cnodes);
     1150            xmlXPathFreeObject (tmpsptr);
     1151            free(xpathExpr);
    11461152            break;
    11471153          }
     
    14241430          else
    14251431            addToMap(*request_inputs,"mode","auto");
     1432          xmlFree(val);
    14261433          val = xmlGetProp (cur, BAD_CAST "response");
    14271434          if(val!=NULL){
     
    14361443            addToMap(*request_inputs,"ResponseDocument","");
    14371444          }
     1445          xmlFree(val);
    14381446        }
    14391447      }
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