Attachments larger than Integer.MAX_VALUE (appr 2.1GB) fails
------------------------------------------------------------

                 Key: WSCOMMONS-318
                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-318
             Project: WS-Commons
          Issue Type: Bug
          Components: AXIOM
         Environment: AXIOM 1.2.5, WinXP, Java 5, Axis2 1.3, Tomcat 5.5.x, 
MTOM, caching to file using Axis2 attachmentDir
            Reporter: Roy Willy Haug


The org.apache.axiom.attachments.Part interface has a getSize() method that 
returns an int. 

This means that no attachment can be larger than Integer.MAX_VALUE (appr 
2.1GB). 

The fix is straightforward: 
I downloaded AXIOM 1.2.5 source and did the int-to-long change a few places and 
then successfully transferred attachments larger than Integer.MAX_VALUE. 





-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to