Skip to content
Snippets Groups Projects
Commit 608a99ac authored by srosse's avatar srosse
Browse files

Merge OpenOLAT 9.4 to OpenOLAT 10.0 with 1f679536d92efc72852f3a1ac71bf14a4dce5210

parents edc05e17 fd61c0eb
No related branches found
No related tags found
No related merge requests found
......@@ -307,16 +307,13 @@ public class WikiHandler implements RepositoryHandler {
String fullFilePath = archivFilePath + File.separator + exportFileName;
File fExportZIP = new File(fullFilePath);
InputStream fis = wikiZip.getInputStream();
try {
FileUtils.bcopy(wikiZip.getInputStream(), fExportZIP, "archive wiki");
try (InputStream fis = wikiZip.getInputStream()) {
FileUtils.bcopy(fis, fExportZIP, "archive wiki");
} catch (FileNotFoundException e) {
log.warn("Can not archive wiki repoEntry=" + repoEntry);
} catch (IOException ioe) {
log.warn("Can not archive wiki repoEntry=" + repoEntry);
} finally {
FileUtils.closeSafely(fis);
}
return exportFileName;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment