"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main/java/com/openkm/extension/servlet/StaplingDownloadServlet.java" between
OpenKM-document-management-system-6.3.10.tar.gz and OpenKM-document-management-system-6.3.11.tar.gz

About: OpenKM (Knowledge Management) is a document management system that allows easy management of documents, users, roles and finding your enterprise documents and records. Community version (source code).

StaplingDownloadServlet.java  (OpenKM-document-management-system-6.3.10):StaplingDownloadServlet.java  (OpenKM-document-management-system-6.3.11)
skipping to change at line 119 skipping to change at line 119
if (okmDoc.isValid(null, path)) { if (okmDoc.isValid(null, path)) {
InputStream is = okmDoc.getContent(null, path, false); InputStream is = okmDoc.getContent(null, path, false);
IOUtils.copy(is, fos); IOUtils.copy(is, fos);
is.close(); is.close();
} }
bw.write(path + " - OK\n" ); bw.write(path + " - OK\n" );
bw.flush(); bw.flush();
} }
} }
} catch (PathNotFoundException e) { } catch (PathNotFoundException | AccessDeniedExce
bw.write(path != null ? path : nodeUuid + ption | LockException e) {
" - " + e.getMessage() + "\n");
bw.flush();
} catch (AccessDeniedException e) {
bw.write(path != null ? path : nodeUuid + " - " + e.getMessage() + "\n"); bw.write(path != null ? path : nodeUuid + " - " + e.getMessage() + "\n");
bw.flush(); bw.flush();
} }
} }
// Zip files // Zip files
IOUtils.closeQuietly(bw); IOUtils.closeQuietly(bw);
ArchiveUtils.createZip(tmpDir, "stapling", os); ArchiveUtils.createZip(tmpDir, "stapling", os);
} catch (IOException e) { } catch (IOException e) {
log.error("Error exporting zip", e); log.error("Error exporting zip", e);
 End of changes. 1 change blocks. 
5 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)