You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org> on 2005/07/27 05:23:25 UTC
[jira] Resolved: (AXIS-2134) ManagedMemoryDataSource does not correctly handle large attachments
[ http://issues.apache.org/jira/browse/AXIS-2134?page=all ]
Davanum Srinivas resolved AXIS-2134:
------------------------------------
Resolution: Fixed
I checked in a fix (see last comment). Please verify.
thanks,
dims
> 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