Hi Matt,
Bug confirmed. I created an issue (with attached patch) for this.
http://jira.codehaus.org/browse/GEOS-4489
-Justin
On Tue, Apr 12, 2011 at 8:50 AM, Matt Bertrand <[email protected]>wrote:
> 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
>
>
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users