Issue Details (XML | Word | Printable)

Key: DWR-83
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Joe Walker
Reporter: Ilya Perminov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DWR

Possible resource leak in org.directwebremoting.servlet.FileHandler.handle

Created: 26/Apr/07 09:56 PM   Updated: 25/Apr/08 12:10 PM   Resolved: 25/Apr/08 12:10 PM
Component/s: core
Affects Version/s: 2.0, 2.0.1, 2.0.2, 2.0.3
Fix Version/s: 2.0.4, 3.0.M1


 Description  « Hide
org.directwebremoting.servlet.FileHandler.handle opens an input stream, but does not close it.

Sort Order: Ascending order - Click to sort in descending order
Mike Wilson added a comment - 11/Apr/08 07:24 PM
This needs to be fixed for the 2.0 branch as well. The streams 'in' and 'raw' need to be closed in FileHandler.handle.
Do you want me to fix it?
//Mike

Joe Walker added a comment - 17/Apr/08 05:55 PM
I had a look because I thought it was just a close not called in finally problem, but it was a close not called problem. I fixed it. I also found a similar problem in 3.

Mike Wilson added a comment - 25/Apr/08 12:10 PM
A colleague just verified in test that it is fixed now.