The layers download from a map doesn't work (http://oq-platform/maps/23/download). An error is triggered by geoserver:
24 Nov 15:48:17 WARN [batchdownload.shp] - Error while writing featuretype 'ghec_viewer_measure' to shapefile.
java.io.IOException: Current fid index is null, next must be called before write()
at org.geotools.data.shapefile.fid.IndexedFidWriter.write(IndexedFidWriter.java:253)
at org.geotools.data.shapefile.IndexedShapefileFeatureWriter.write(IndexedShapefileFeatureWriter.java:95)
at org.geotools.data.shapefile.ShapefileFeatureWriter.close(ShapefileFeatureWriter.java:220)
at org.geotools.data.shapefile.IndexedShapefileFeatureWriter.close(IndexedShapefileFeatureWriter.java:103)
at org.geotools.data.InProcessLockingManager$1.close(InProcessLockingManager.java:350)
at org.geonode.process.batchdownload.shp.ShapeZipWriter.writeCollectionToShapefile(ShapeZipWriter.java:254)
at org.geonode.process.batchdownload.shp.ShapeZipWriter.doWrite(ShapeZipWriter.java:184)
at org.geonode.process.batchdownload.shp.ShapeZipWriter.write(ShapeZipWriter.java:125)
at org.geonode.process.batchdownload.BatchDownload.zipVectorLayer(BatchDownload.java:294)
at org.geonode.process.batchdownload.BatchDownload.zipLayer(BatchDownload.java:262)
at org.geonode.process.batchdownload.BatchDownload.zipLayers(BatchDownload.java:232)
at org.geonode.process.batchdownload.BatchDownload.buildZippFile(BatchDownload.java:129)
at org.geonode.process.batchdownload.BatchDownload.executeInternal(BatchDownload.java:78)
at org.geonode.process.control.AsyncProcess.execute(AsyncProcess.java:62)
at org.geotools.process.ProgressTask$Synchronizer.innerRun(ProgressTask.java:302)
at org.geotools.process.ProgressTask.run(ProgressTask.java:121)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:701)
This is the returned value in browser inspector:
{"process":{"id":7,"status":"FAILED","progress":0,"reasonForFailure":"java.io.IOException: Current fid index is null, next must be called before write()"}}
This feature works with icebox generated maps. We need to check if the problem is related to our layers.