CachedOutputStream leaves behind temp files if resetOut() is called
-------------------------------------------------------------------
Key: CXF-2816
URL: https://issues.apache.org/jira/browse/CXF-2816
Project: CXF
Issue Type: Bug
Components: Core
Affects Versions: 2.2.8
Environment: Windows
Reporter: aaron pieper
CachedOutputStream's resetOut() has a section of code where it is possible to open a FileInputStream
without closing it. This happens if the stream is not in memory, and copyOldContent is false.
I noticed this when I added a "LoggingOutInterceptor". When large messages were logged, temp
files would accumulate in the temp directory. Applying the attached patch solved the problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.