Index: lams_tool_sbmt/src/java/org/lamsfoundation/lams/tool/sbmt/web/ExportServlet.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_sbmt/src/java/org/lamsfoundation/lams/tool/sbmt/web/ExportServlet.java,v diff -u -r1.11 -r1.12 --- lams_tool_sbmt/src/java/org/lamsfoundation/lams/tool/sbmt/web/ExportServlet.java 17 Sep 2006 06:27:56 -0000 1.11 +++ lams_tool_sbmt/src/java/org/lamsfoundation/lams/tool/sbmt/web/ExportServlet.java 7 Nov 2007 07:55:00 -0000 1.12 @@ -124,9 +124,6 @@ FileDetailsDTO submittedFile = (FileDetailsDTO) fileListIter .next(); - logger.debug("doExport: starting to write file:" - + submittedFile.getFilePath()); - IVersionedNode node = sbmtService.downloadFile(submittedFile .getUuID(), submittedFile.getVersionID()); @@ -143,10 +140,12 @@ // Creating the directory structure outFileDir.mkdirs(); - - File outFile = new File(outFileDir, submittedFile - .getFilePath()); - + + logger.debug("doExport: starting to write file in zip compatible format:" + + node.getZipCompatibleFilename()); + + File outFile = new File(outFileDir, node.getZipCompatibleFilename()); + // writing the data to file FileOutputStream fos = new FileOutputStream(outFile); BufferedOutputStream bos = new BufferedOutputStream(fos); @@ -178,7 +177,7 @@ logger.debug("doExport: encoding exportedURL"); String exportedURL = user.getLogin() + "/" + submissionCount - + "/" + submittedFile.getFilePath(); + + "/" + node.getZipCompatibleFilename(); attachmentList.add(exportedURL);