Vasco Nunes created GEOS-5480 |
Issue Type: |
Bug |
Affects Versions: |
2.2.2 |
Assignee: |
|
Components: |
REST |
Created: |
27/Nov/12 6:29 AM |
Description: |
I’m having problems with adding layers to Geoserver using REST API. I tried to put the zip file (localfile.zip) with the curl -u admin:geoserver -v -XPUT -H ‘Content-type: application/zip’ --data-binary @C:/x/test_data/localfile.zip http://localhost:8081/geoserver/rest/workspaces/test_VN/datastores/maisum/file.shp But I got : java.io.IOException: Wrong magic number, expected 9994, got 1347093252 It seems to be as if Geoserver has treated my zip file as a shape file, because a “maisum” directory was created in my " geoserver\data\data" directory, but there is only one file in there : localfile.shp that has the same size of the original zip file. |
Environment: |
Windows 7 |
Project: |
|
Priority: |
Major |
Reporter: |