Ignore:
Timestamp:
Jan 13, 2011, 5:36:55 PM (13 years ago)
Author:
djay
Message:

Fix for use of status and storeExecuteResponse parameters.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-kernel/zoo_service_loader.c

    r69 r72  
    17001700   */
    17011701  r_inputs=NULL;
     1702  map* store=getMap(request_inputs,"storeExecuteResponse");
     1703  map* status=getMap(request_inputs,"status");
     1704  /**
     1705   * 05-007r7 WPS 1.0.0 page 57 :
     1706   * 'If status="true" and storeExecuteResponse is "false" then the service
     1707   * shall raise an exception.'
     1708   */
     1709  if(status!=NULL && strcmp(status->value,"true")==0 &&
     1710     store!=NULL && strcmp(store->value,"false")==0){
     1711    errorException(m, _("Status cannot be set to true with storeExecuteResponse to false. Please, modify your request parameters."), "InvalidParameterValue");
     1712    freeService(&s1);
     1713    free(s1);
     1714    freeMaps(&m);
     1715    free(m);
     1716   
     1717    freeMaps(&request_input_real_format);
     1718    free(request_input_real_format);
     1719   
     1720    freeMaps(&request_output_real_format);
     1721    free(request_output_real_format);
     1722   
     1723    free(REQUEST);
     1724    free(SERVICE_URL);
     1725    return 1;
     1726  }
    17021727  r_inputs=getMap(request_inputs,"storeExecuteResponse");
    17031728  int eres=SERVICE_STARTED;
     
    17191744#endif
    17201745
    1721   if(r_inputs!=NULL)
    1722     if(strcasecmp(r_inputs->value,"false")==0)
    1723       r_inputs=NULL;
    1724   if(r_inputs==NULLMAP){
     1746  if(status!=NULL)
     1747    if(strcasecmp(status->value,"false")==0)
     1748      status=NULL;
     1749  if(status==NULLMAP){
    17251750    loadServiceAndRun(&m,s1,request_inputs,&request_input_real_format,&request_output_real_format,&eres);
    17261751  }
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