Hi,I noticed an issue yesterday when trying to import multiple files into the same PostGIS data store via the Geoserver REST API. They seem to interfere with one another and only one of the multiple simultaneous requests ever succeed:
curl -u admin:geoserver -XPUT -H 'Content-type: application/zip' --data-binary @/Users/mbertrand/Desktop/sampledata/Copy1.zip http://localhost:8080/geoserver/rest/workspaces/cite/datastores/wmpostgis/file.shp & curl -u admin:geoserver -XPUT -H 'Content-type: application/zip' --data-binary @/Users/mbertrand/Desktop/sampledata/Copy2.zip http://localhost:8080/geoserver/rest/workspaces/cite/datastores/wmpostgis/file.shp &
However, if I first create a new datastore for each upload, then everything works fine:
curl -u admin:geoserver -XPOST -T Copy1.xml -H 'Content-type: text/xml' http://localhost:8080/geoserver/rest/workspaces/cite/datastores curl -u admin:geoserver -XPOST -T Copy2.xml -H 'Content-type: text/xml' http://localhost:8080/geoserver/rest/workspaces/cite/datastores
curl -u admin:geoserver -XPUT -H 'Content-type: application/zip' --data-binary @/Users/mbertrand/Desktop/sampledata/Copy1.zip http://localhost:8080/geoserver/rest/workspaces/cite/datastores/Copy1/file.shp & curl -u admin:geoserver -XPUT -H 'Content-type: application/zip' --data-binary @/Users/mbertrand/Desktop/sampledata/Copy2.zip http://localhost:8080/geoserver/rest/workspaces/cite/datastores/Copy2/file.shp &
------------------------------------------------------------------------------ Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
