[Geoserver-devel] [jira] Created: (GEOS-3926) Updating shapefile via REST.

Updating shapefile via REST.
----------------------------

                 Key: GEOS-3926
                 URL: http://jira.codehaus.org/browse/GEOS-3926
             Project: GeoServer
          Issue Type: Bug
          Components: REST
    Affects Versions: 2.0.x
         Environment: Windows XP, SP1
            Reporter: Machiel de Swijger-Asakura
            Assignee: Andrea Aime

Hi,

When I upload a shapefile via REST, geoserver creates the datastore in the workspace and the shapefile in de data-dir/data. So far so good.
But when i try to upload the same shapefile again (to update it), it fails and gives me the error: Error opening zip file.
But the strange thing is that some shapefiles DO update and gives no error.

But when i check the folder data-dir/data/new_shapefile/ after the error i see a new_shapefile.shp.zip and when i delete this file the update process works :S
I debugged the code and it going wrong in the org.geoserver.rest.util.RESTUtils.unzipFile method on this line: ZipFile archive = new ZipFile(zipFile).

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira