- Timestamp:
- Apr 28, 2017, 6:00:52 PM (8 years ago)
- Location:
- trunk/zoo-project/zoo-kernel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/response_print.c
r797 r820 1982 1982 elements* ecurs=getElements(e,(e!=NULL?e->name:m->name)); 1983 1983 ecurs=ecurs->child; 1984 while(curs!=NULL && ecurs!=NULL){ 1984 while(curs!=NULL){ 1985 ecurs=getElements(ecurs,(curs->name)); 1985 1986 map* inRequest=getMap(curs->content,"inRequest"); 1986 1987 if(inRequest!=NULL && strncasecmp(inRequest->value,"true",4)==0) 1987 1988 printIOType(doc,nc1,ns_wps,ns_ows,ns_xlink,ecurs,curs,type,vid); 1988 1989 curs=curs->next; 1989 ecurs=ecurs->next; 1990 ecurs=getElements(e,(e!=NULL?e->name:m->name)); 1991 ecurs=ecurs->child; 1990 1992 } 1991 1993 } -
trunk/zoo-project/zoo-kernel/server_internal.c
r805 r820 662 662 if(tmpMaps2->content==NULL) 663 663 tmpMaps2->content=createMap(tmpm->name,tmpm->value); 664 else 664 else{ 665 665 addToMap(tmpMaps2->content,tmpm->name,tmpm->value); 666 } 666 667 tmpm=tmpm->next; 667 668 } 668 669 } 669 addToMap(tmpMaps2->content,"inRequest","false"); 670 if(tmpMaps2->content==NULL){ 671 tmpMaps2->content=createMap("inRequest","false"); 672 dumpMaps(tmpMaps2); 673 } 674 else 675 addToMap(tmpMaps2->content,"inRequest","false"); 670 676 if(type==0){ 671 677 map *tmpMap=getMap(tmpMaps2->content,"value"); … … 673 679 addToMap(tmpMaps2->content,"value","NULL"); 674 680 } 681 elements* tmpElements=getElements(in,tmpMaps2->name); 682 if(tmpElements!=NULL && tmpElements->child!=NULL){ 683 char *res=addDefaultValues(&tmpMaps2->child,tmpElements->child,m,type,err); 684 if(strlen(res)>0){ 685 return res; 686 } 687 } 688 675 689 if(out1==NULL){ 676 690 *out=dupMaps(&tmpMaps2); … … 687 701 } 688 702 } 689 else {703 else { 690 704 iotype* tmpIoType=NULL; 691 705 if(tmpMaps->content!=NULL){ … … 820 834 addToMap(tmpMaps->content,"inRequest","true"); 821 835 elements* tmpElements=getElements(in,tmpMaps->name); 822 if(tmp Maps->child!=NULL && tmpElements!=NULL && tmpElements->child!=NULL){836 if(tmpElements!=NULL && tmpElements->child!=NULL){ 823 837 char *res=addDefaultValues(&tmpMaps->child,tmpElements->child,m,type,err); 824 838 if(strlen(res)>0){ 825 fprintf(stderr,"%s %d\n",__FILE__,__LINE__);826 839 return res; 827 840 } 828 841 } 829 842 } 830 if(tmpInputs->child!=NULL){ 831 tmpInputss=tmpInputs->next; 832 tmpInputs=tmpInputs->child; 833 if(tmpMaps!=NULL){ 834 out1=tmpMaps->child; 835 out1s=tmpMaps; 836 } 837 }else 838 tmpInputs=tmpInputs->next; 843 tmpInputs=tmpInputs->next; 839 844 } 840 845 if(tmpInputss!=NULL){ -
trunk/zoo-project/zoo-kernel/ulinet.c
r817 r820 191 191 * @param proto the protocol requiring the use of a proxy 192 192 */ 193 boolsetProxiesForProtcol(CURL* handle,const char *proto){193 int setProxiesForProtcol(CURL* handle,const char *proto){ 194 194 #ifdef MSG_LAF_VERBOSE 195 195 fprintf( stderr, "setProxiesForProtocol (do nothing) ...\n" ); 196 196 #endif 197 return true;197 return 0; 198 198 } 199 199 #endif … … 284 284 char *token, *saveptr; 285 285 token = strtok_r (tmp, ",", &saveptr); 286 for(int i=0;i<handle->nb;i++){ 286 int i; 287 for(i=0;i<handle->nb;i++){ 287 288 if(targetHosts->value[0]=='*' || isProtectedHost(targetHosts->value,handle->ihandle[i].url)==1){ 288 289 while (token != NULL){ … … 290 291 char* tmp1=(char*)malloc(length*sizeof(char)); 291 292 snprintf(tmp1,6,"HTTP_"); 292 for(int i=0;token[i]!='\0';i++){ 293 if(token[i]!='-') 294 tmp1[5+i]=toupper(token[i]); 293 int j; 294 for(j=0;token[j]!='\0';j++){ 295 if(token[j]!='-') 296 tmp1[5+j]=toupper(token[i]); 295 297 else 296 tmp1[5+ i]='_';297 tmp1[5+ i+1]='\0';298 tmp1[5+j]='_'; 299 tmp1[5+j+1]='\0'; 298 300 } 299 301 fprintf(stderr,"%s %d %s \n",__FILE__,__LINE__,tmp1);
Note: See TracChangeset
for help on using the changeset viewer.