axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergio Juan (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-2134) ManagedMemoryDataSource does not correctly handle large attachments
Date Wed, 27 Jul 2005 14:47:22 GMT
    [ http://issues.apache.org/jira/browse/AXIS-2134?page=comments#action_12316918 ] 

Sergio Juan commented on AXIS-2134:
-----------------------------------

While I'm not yet working with axis1.2, I have introduced this path in axis1.1 and I did get
to transfer files of up to 3.85GB (limited due to disk space). It works just fine, the only
thing needed in 1.1 is to also convert the attribute totalsz from the Instream class from
int to long (in axis1.2 it was already a long).

> ManagedMemoryDataSource does not correctly handle large attachments
> -------------------------------------------------------------------
>
>          Key: AXIS-2134
>          URL: http://issues.apache.org/jira/browse/AXIS-2134
>      Project: Apache Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.2.1
>  Environment: Not platform dependent
>     Reporter: Rodrigo Ruiz

>
> When trying to send an attachment larger than 2Gbytes, I get IndexOutOfBound exceptions.
> I think the problem is in the ManagedMemoryDataSource.InStream class implementation.
I do not have access to the source CVS, so it's difficult to me to provide a correct patch,
but I can describe it:
> - The bread field should be a "long", instead of an "int"
> - The available() method should return Math.min(Integer.MAX_VALUE, totalsz - bread),
to ensure an integer is returned

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