DataStoreFileResource returns incomplete zip file when downloading from a shape datastore
-----------------------------------------------------------------------------------------
Key: GEOS-3388
URL: http://jira.codehaus.org/browse/GEOS-3388
Project: GeoServer
Issue Type: Bug
Components: REST
Affects Versions: 1.7.6
Reporter: Gustavo Giráldez
Assignee: Andrea Aime
Priority: Minor
Attachments: restconfig-zipdownload.patch
When downloading the zip file containing the .shp, .shx and .dbf from a datastore using the URI /workspaces/<ws>/datastores/<ds>/file.shp, the returned archive is missing the zip entries at the end. By looking at the code, it seems the zip stream it's not being properly closed. Attached trivial patch fixes the problem.
--
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