[Geoserver-users] Geoserver 2.0.3 and 2.1-RC3 REST config issues

Dear all,
I’m trying to upload a shapefile via rest api.
I use the following command:

curl -u admin:geoserver -XPUT -H ‘Content-type: application/zip’ --data-binary @C:/cultivated-areas.zip http://localhost:8080/geoserver/rest/workspaces/prova/datastores/test/file.shp

This test fails both on geoserver 2.0.3 and 2.1-RC3 releases, in fact it seems to fail while unzipping my source and i got the exception:

java.io.IOException: Wrong magic number, expected 9994, got 1347093252I found also in the JIRA the GEOS-3973 “Errors decompressing zipped shapefiles when sending them via rest to GeoServer” fixed but I can’t do the upload.

Please, can you help me?

Thanks in advance,

Marianna