axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Resolved: (AXIS-1906) CLONE -dime attachment content is empty if datahandler's source is not FileDataSource
Date Sat, 23 Apr 2005 21:49:27 GMT
     [ http://issues.apache.org/jira/browse/AXIS-1906?page=all ]
     
Davanum Srinivas resolved AXIS-1906:
------------------------------------

    Resolution: Fixed

 Use HTTP1.1 chunked...see http://marc.theaimsgroup.com/?l=axis-dev&m=111429226315957&w=2
for details. Had to make a code change as well.

-- dims

> CLONE -dime attachment content is empty if datahandler's source is not FileDataSource
> -------------------------------------------------------------------------------------
>
>          Key: AXIS-1906
>          URL: http://issues.apache.org/jira/browse/AXIS-1906
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.1
>  Environment: Operating System: Other
> Platform: Other
>     Reporter: Raphael Jean
>  Attachments: EchoAttachment.java, TestAttachmentsSample.java
>
> The problem is that in DimeBodyPart for getDataSize(), if the source is not 
> FileDataSource we actually read the whole input stream and then close it. When 
> we close it we can no longer use the stream to write out the content. One 
> possible solution would be that while we read in the data to get the size, we 
> write it out to a ByteArrayOutputStream and then use it to write out the data 
> out.

-- 
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


Mime
View raw message