axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Eichhorn (JIRA) <j...@apache.org>
Subject [jira] Updated: (AXIS2-778) Method getDataHandler() in SAAJ AttachmentPartImpl opens an imput stream internally which is not closed.
Date Mon, 29 May 2006 14:51:30 GMT
     [ http://issues.apache.org/jira/browse/AXIS2-778?page=all ]

Jörg Eichhorn updated AXIS2-778:
--------------------------------

    Attachment: AttachmentPartImpl.diff

Only check if the dataHandler is not null before returning.

> Method getDataHandler() in SAAJ AttachmentPartImpl opens an imput stream internally which
is not closed.
> --------------------------------------------------------------------------------------------------------
>
>          Key: AXIS2-778
>          URL: http://issues.apache.org/jira/browse/AXIS2-778
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: om
>  Environment: Java 1.5
>     Reporter: Jörg Eichhorn
>  Attachments: AttachmentPartImpl.diff
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message