Good afternoon,
We have an interesting issue that’s recently popped up in our Drools Guvnor 5.1.0 war deployment. When we use the Guvnor webapp to download the repository as a zip export (or, alternatively, GET /org.drools.guvnor.Guvnor/backup), the download completes, but the zip file is corrupted (i.e., cannot be opened with 7-Zip). Taking a look at the code (https://github.com/droolsjbpm/guvnor/blob/master/guvnor-webapp/src/main/java/org/drools/guvnor/server/files/RepositoryBackupServlet.java ), I can’t see any obvious problem. The only thought that came to mind is that the the servlet never performs an res.getOutputStream().close(), but then again, this servlet has worked fine for us in other deployments. Moreover, no errors are either displayed to the user (I noticed that the “doGet” method returns any exceptions over the OutputStream) or logged to file.
Does anyone have a suggestion on how to continue debugging this problem?
Thanks in advance.
Justin