[
https://issues.apache.org/jira/browse/WW-4673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukasz Lenart resolved WW-4673.
-------------------------------
Resolution: Duplicate
Fix Version/s: 2.5.3
> InputFileStream not closed in Stream results
> --------------------------------------------
>
> Key: WW-4673
> URL: https://issues.apache.org/jira/browse/WW-4673
> Project: Struts 2
> Issue Type: Bug
> Components: Core Results
> Affects Versions: 2.5
> Reporter: Paolo Perliti
> Fix For: 2.5.3
>
>
> In StreamResult's versions prior to 2.5 the input stream was correctly closed:
> {code}
> try {
> get inputStream
> if (inputStream == null)
> throw Exception
> get outputStream
> } finally {
> if inputStream != null inputStream.close()
> if outputStream != null outputStream.close()
> }
> {code}
> 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
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)