When a filename contains spaces the browser (at least Firefox) doesn't recognize the complete filename.
Relates to line 68 in DocumentServlet.java:
response.addHeader("Content-Disposition", "attachment;filename=" + doc.getFileName());
Solution: See page 3 of http://www.ietf.org/rfc/rfc2183.txt :
NOTE ON PARAMETER VALUE LENGHTS: A short (length