Ignore:
Timestamp:
Mar 9, 2015, 4:46:24 PM (9 years ago)
Author:
knut
Message:

Altered the path of stored response files from [tmpPath]/[serviceProvider]_[cpid].xml to [tmpPath]/[serviceName]_[cpid].xml. Added support for a new parameter, libPath, in the [main] block of main.cfg. The libPath parameter is interpreted as the absolute path of the directory containing library files. If the libPath parameter is set, it will override the metapath parameter such that library files are loaded from [libPath]/[serviceProvider] instead of [CWD]/[metapath]/[serviceProvider]. Added the option to disable the metapath parameter (for security reasons) at compile time: If the Zoo kernel is compiled with the preprocessor directive IGNORE_METAPATH, the metapath will be set to the empty string. Note however, that the libPath and IGNORE_METAPATH options so far only work for C and PHP; the functions for loading libraries written in other languages should be modified correspondingly before the documentation is updated. See also ticket no. 112 (http://www.zoo-project.org/trac/ticket/112). Fixed some spelling errors and modified the language in some of the messages returned by the Zoo kernel.

File:
1 edited

Legend:

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

    r601 r605  
    19431943  case SERVICE_SUCCEEDED:
    19441944    nc1 = xmlNewNode(ns, BAD_CAST "ProcessSucceeded");
    1945     sprintf(sMsg,_("Service \"%s\" run successfully."),serv->name);
     1945    sprintf(sMsg,_("The service \"%s\" ran successfully."),serv->name);
    19461946    nc3=xmlNewText(BAD_CAST sMsg);
    19471947    xmlAddChild(nc1,nc3);
     
    19511951    tmpStatus=getMapFromMaps(m,"lenv","status");
    19521952    xmlNewProp(nc1,BAD_CAST "percentCompleted",BAD_CAST tmpStatus->value);
    1953     sprintf(sMsg,_("ZOO Service \"%s\" is currently running. Please, reload this document to get the up-to-date status of the Service."),serv->name);
     1953    sprintf(sMsg,_("The ZOO service \"%s\" is currently running. Please reload this document to get the up-to-date status of the service."),serv->name);
    19541954    nc3=xmlNewText(BAD_CAST sMsg);
    19551955    xmlAddChild(nc1,nc3);
     
    19571957  case SERVICE_ACCEPTED:
    19581958    nc1 = xmlNewNode(ns, BAD_CAST "ProcessAccepted");
    1959     sprintf(sMsg,_("Service \"%s\" was accepted by the ZOO Kernel and it run as a background task. Please consult the statusLocation attribtue providen in this document to get the up-to-date document."),serv->name);
     1959    sprintf(sMsg,_("The service \"%s\" was accepted by the ZOO kernel and is running as a background task. Please access the URL in the statusLocation attribute provided in this document to get the up-to-date status and results."),serv->name);
    19601960    nc3=xmlNewText(BAD_CAST sMsg);
    19611961    xmlAddChild(nc1,nc3);
     
    20672067        /* If the file cannot be created return an ExceptionReport */
    20682068        char tmpMsg[1024];
    2069         sprintf(tmpMsg,_("Unable to create the file : \"%s\" for storing the ExecuteResponse."),stored_path);
     2069        sprintf(tmpMsg,_("Unable to create the file \"%s\" for storing the ExecuteResponse."),stored_path);
    20702070
    20712071        errorException(m,tmpMsg,"InternalError",NULL);
     
    22512251            nc3=xmlNewNode(ns_wps, BAD_CAST tmpV->value);
    22522252      else
    2253             nc3=xmlNewNode(ns_wps, BAD_CAST "LitteralData");
     2253            nc3=xmlNewNode(ns_wps, BAD_CAST "LiteralData");
    22542254    }
    22552255    tmp=m->content;
     
    27112711    if(teste==NULL){
    27122712      char tmpMsg[1024];
    2713       sprintf(tmpMsg,_("Unable to create the file : \"%s\" for storing the session maps."),session_file_path);
     2713      sprintf(tmpMsg,_("Unable to create the file \"%s\" for storing the session maps."),session_file_path);
    27142714      errorException(m,tmpMsg,"InternalError",NULL);
    27152715
     
    28042804            file_path=(char*)malloc((strlen(tmp1->value)+strlen(file_name)+2)*sizeof(char));
    28052805            sprintf(file_path,"%s/%s",tmp1->value,file_name);
    2806            
     2806   
    28072807                FILE *ofile=fopen(file_path,"wb");
    28082808            if(ofile==NULL){
    28092809              char tmpMsg[1024];
    2810               sprintf(tmpMsg,_("Unable to create the file : \"%s\" for storing the %s final result."),file_name,tmpI->name);
     2810              sprintf(tmpMsg,_("Unable to create the file \"%s\" for storing the %s final result."),file_name,tmpI->name);
    28112811              errorException(m,tmpMsg,"InternalError",NULL);
    28122812              free(file_name);
     
    28622862#endif
    28632863    printProcessResponse(m,request_inputs1,cpid,
    2864                          s,r_inputs->value,res,
     2864                //       s,r_inputs->value,res,
     2865                         s, s->name,res,  // replace serviceProvider with serviceName in stored response file name
    28652866                         request_inputs,
    28662867                         request_outputs);
     
    28932894      if(toto==NULL){
    28942895        char tmpMsg[1024];
    2895         sprintf(tmpMsg,_("Wrong RawDataOutput parameter, unable to fetch any result for the name your provided : \"%s\"."),tmpI->name);
     2896        sprintf(tmpMsg,_("Wrong RawDataOutput parameter: unable to fetch any result for the given parameter name: \"%s\"."),tmpI->name);
    28962897        errorException(m,tmpMsg,"InvalidParameterValue","RawDataOutput");
    28972898        return;
     
    38323833    free(tmp0);
    38333834    buffer[strlen(buffer)-1]=0;
    3834     if(i+1<level){
    3835       map* tmpMap=getMapFromMaps(conf,"lenv","metapath");
     3835    if(i+1<level){
     3836      #ifdef IGNORE_METAPATH
     3837        map* tmpMap = createMap("metapath", "");
     3838      #else 
     3839        map* tmpMap=getMapFromMaps(conf,"lenv","metapath");
     3840      #endif     
    38363841      if(tmpMap==NULL || strlen(tmpMap->value)==0){
    38373842        char *tmp01=zStrdup(tmp00->value);
     
    39823987    }
    39833988    if(hasValidValue<0){
    3984       char *replace=_("Ununderstood <%s> value, %s %s the only acceptable value.");
     3989      char *replace=_("The value <%s> was not recognized, %s %s the only acceptable value.");
    39853990      nb=0;
    39863991      char *vvalues=NULL;
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