Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.5
-
None
-
Important
Description
In StreamResult's versions prior to 2.5 the input stream was correctly closed:
try { get inputStream if (inputStream == null) throw Exception get outputStream } finally { if inputStream != null inputStream.close() if outputStream != null outputStream.close() }
Starting from version 2.5 input stream is not closed anymore. This breaks compatibility for applications that relied on this hook:
http://stackoverflow.com/questions/4693968/is-there-an-existing-fileinputstream-delete-on-close