Ignore:
Timestamp:
Sep 12, 2018, 4:02:49 PM (6 years ago)
Author:
djay
Message:

Modify memory configuration option gesture. Now, in case you don't have setup memory option in the main section your main.cfg file then, the ZOO-Kernel will load everything in memory and will also store the file containing the input. In case you want the old mode, you have to set memory option to 'load' in your main.cfg file. Fix issue with loading R ZOO-Service located in a subdirectory. Support for XML Execute request containing TEXT_NODE when CDATA_NODE should be used.

File:
1 edited

Legend:

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

    r877 r880  
    978978
    979979                      map *test = getMap (tmpmaps->content, "encoding");
    980                      
    981980                      if (test == NULL)
    982981                        {
     
    992991                      if (getMap(tmpmaps->content,"dataType")==NULL && test!=NULL && strcasecmp (test->value, "base64") != 0)
    993992                        {
    994                           xmlChar *mv = xmlNodeListGetString (doc,
    995                                                               cur4->xmlChildrenNode,
    996                                                               1);
     993                          xmlChar *mv = NULL;
     994                          /*if(cur4!=NULL && cur4->xmlChildrenNode!=NULL)
     995                            xmlChar *mv = xmlNodeListGetString (doc,
     996                                                                cur4->xmlChildrenNode,
     997                                                                1);*/
    997998                          map *ltmp =
    998                             getMap (tmpmaps->content, "mimeType");                       
    999                           if (mv == NULL
    1000                               ||
     999                            getMap (tmpmaps->content, "mimeType");
     1000                          if (/*mv == NULL
     1001                              ||*/
    10011002                              (xmlStrcasecmp
    10021003                               (cur4->name, BAD_CAST "ComplexData") == 0
     
    10361037                                           buffersize);
    10371038                            }else{
     1039
    10381040                            if(xmlStrcasecmp
    10391041                               (cur4->name, BAD_CAST "BoundingBoxData") == 0){
     
    10511053                              while (cur5 != NULL
    10521054                                     && cur5->type != XML_ELEMENT_NODE
     1055                                     && cur5->type != XML_TEXT_NODE
    10531056                                     && cur5->type != XML_CDATA_SECTION_NODE)
    10541057                                cur5 = cur5->next;
    10551058                              if (cur5 != NULL
    1056                                   && cur5->type != XML_CDATA_SECTION_NODE)
     1059                                  && cur5->type != XML_CDATA_SECTION_NODE
     1060                                  && cur5->type != XML_TEXT_NODE)
    10571061                                {
    10581062                                  xmlDocPtr doc1 = xmlNewDoc (BAD_CAST "1.0");
     
    10651069                                               buffersize);
    10661070                                }
    1067                               else /*if (cur5 != NULL
     1071                              else if (cur5 != NULL)/*
    10681072                                     && cur5->type == XML_CDATA_SECTION_NODE)*/{
    10691073                                xmlFree(mv);
    1070                                 mv=xmlStrdup(cur5->content);
     1074                                if(cur5->content!=NULL){
     1075                                  mv=xmlStrdup(cur5->content);
     1076                                }
    10711077                              }
    10721078                            }
     
    11501156                  }
    11511157              }
    1152             else
     1158            else{
    11531159              addMapsToMaps (request_output, tmpmaps);
     1160            }
    11541161          }
    11551162          freeMaps (&tmpmaps);
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