Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The RestoreSnapshotRunnable task that is used by SnapshotCommand to restore the data area of a bundle cannot ever work:
private void unpack(File source, File target) throws IOException { ZipInputStream input = null; try { input = new ZipInputStream(new FileInputStream(source)); for (ZipEntry entry = input.getNextEntry(); entry != null; entry = input.getNextEntry()) { if (entry.isDirectory()) { (new File(target, entry.getName())).mkdirs(); } else { OutputStream output = null; try { output = new FileOutputStream(target); // THIS: ^^^^^^ // ...
Given that target is always a directory, the marked line above will never succeed.
Attachments
Issue Links
- is related to
-
ACE-500 Exception when updating tag value used in MetaType configuration file
- Resolved