Changeset 946 for trunk


Ignore:
Timestamp:
Aug 22, 2019, 1:58:36 PM (5 years ago)
Author:
djay
Message:

Add the optional handleText parameter in the main section of the main.cfg file to make sure that text node provided in multiple CDATA nodes child of the complex data are pure text.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/kernel/configuration.rst

    r944 r946  
    9898   the value field of the inputs data will be filled by the ZOO-Kernel
    9999   or ``protected`` to have only the ``cache_file`` filled.
    100 
     100 * ``handleText``: (Optional) set it to ``true`` to get your Complex data
     101   nodes containing text not requiring a single CDATA node. Be aware
     102   that in case you use any HTML or XML there, you will then need to
     103   rebuild the string to get the original format of the text from your
     104   service code. In case you do not add handleText or set its value to
     105   true, you will simply need to use the value as it was provided in
     106   a single CDATA node provided in the Execute request.
    101107
    102108.. warning::
  • trunk/zoo-project/HISTORY.txt

    r945 r946  
    11Version 1.8.0-dev
     2  * Add the optional handleText parameter to provide pure text for
     3  complex data node with mimetype="text/*"
    24  * Fix issue in case JavaScript support is activated
    35  * Fix issue with GDAL profile service
  • trunk/zoo-project/zoo-kernel/request_parser.c

    r940 r946  
    10711071                                }
    10721072                              else if (cur5 != NULL){
    1073                                 if(ltmp!= NULL && strstr(ltmp->value,"text/")!=NULL){
     1073                                map* handleText=getMapFromMaps(*main_conf,"main","handleText");
     1074                                if(handleText!=NULL && strcasecmp(handleText->value,"true")==0 && ltmp!= NULL && strstr(ltmp->value,"text/")!=NULL){
    10741075                                  xmlChar *tmp = xmlNodeListGetRawString (doc,
    10751076                                                                          cur4->xmlChildrenNode,
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