Ignore:
Timestamp:
Sep 8, 2020, 4:51:09 PM (2 years ago)
Author:
djay
Message:

Make sure not to try accessing mimetype and provenance in case a local file is used. Fix issue with addMapsToMaps. Produce value string only when memory=load for Python support. Make gdal/profile service usable in case memory=protect.

File:
1 edited

Legend:

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

    r921 r961  
    373373    return ;
    374374  }
    375   fseek(file, 0, SEEK_END);
    376375  zStatStruct f_status;
    377376  int s=zStat(filename, &f_status);
    378377  sprintf(rsize,"%lld",f_status.st_size);
    379   rewind(file);
    380378  if(getMap(content,"storage")==NULL){
    381379    map* memUse=getMapFromMaps(m,"main","memory");
     
    390388      if(tmpMap1->value==NULL){
    391389        setMapInMaps(m,"lenv","message","Unable to allocate the memory required to read the produced file.");
     390        return;
    392391      }
    393392      fread(&tmpMap1->value,1,f_status.st_size,file);
     
    395394    }
    396395  }
    397   fclose(file); 
    398   addToMap(content,"size",rsize);
     396  fclose(file);
     397  if(content!=NULL)
     398    addToMap(content,"size",rsize);
    399399}
    400400
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