[Geoserver-users] Overwriting shapefiles using rest configuration

Hi,
I am using the rest configuration to PUT a zipped shapefiles to the server
and it works the first time I do it but I get an error saying "error in
opening zip file" the 2nd time I attempt to upload.

The URL I am uploading to is
/geoserver/rest/workspaces/maps/datastores/uk/file.shp and looking at the
API reference, using PUT here will either create or overwrite files for the
datastore. So I assume calling it a 2nd time should upload the files again
to overwrite the existing files? One thing I did notice was in the
\data_dir\data\uk folder the file uk.shp had changed to uk.shp.zip the 2nd
time I uploaded the files.
--
View this message in context: http://www.nabble.com/Overwriting-shapefiles-using-rest-configuration-tp22967259p22967259.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi, confirmed, this is a bug. Could you fire it in the bug tracker on jira.codehaus.org? I should be able to fix it relatively soon so you can grab a nightly build to try out the fix.

Thanks,

-Justin

dk80 wrote:

Hi,
I am using the rest configuration to PUT a zipped shapefiles to the server
and it works the first time I do it but I get an error saying "error in
opening zip file" the 2nd time I attempt to upload.

The URL I am uploading to is
/geoserver/rest/workspaces/maps/datastores/uk/file.shp and looking at the
API reference, using PUT here will either create or overwrite files for the
datastore. So I assume calling it a 2nd time should upload the files again
to overwrite the existing files? One thing I did notice was in the
\data_dir\data\uk folder the file uk.shp had changed to uk.shp.zip the 2nd
time I uploaded the files.

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.