Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Java 1.5
Description
When the method getDataHandler() in the class org.apache.axis2.saaj.AttachmentPartImpl it checks internally if there is content available by testing whether the getContent() method returns null or not.
The getContent() method will internally return the content of the datahandler which is the (File)InputStream in my case.
This InputStream is not closed anymore which results into locked files (until the application exits).
I think it does not make sense to check if there is really content available - the check if the dataHandler is not null (like it was in the Axis1 implementation) should be enough.