Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Should
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Platform 1.11.8, Platform 1.12.1, Platform 2.0.2, Core 2.1.0
-
Component/s: None
-
Labels:None
Description
ImageHandler creates a new File ready to be written to in order to write the image data to disk:
File outfile = getOutputFileToWrite(obs);
However, unlike what's done with some other handlers such as BinaryDataHandler, it is never closed.
Whenever an IOException is raised, outFile remains open and we end up with a 0 size file lingering on the disk that is not associated with any complex obs: a ghost empty file.
There is no workaround for this. Those 0 sizes occurrences have to be spotted and deleted manually.