Uploaded image for project: 'Axiom'
  1. Axiom
  2. AXIOM-70

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • AXIOM 1.2.5, WinXP, Java 5, Axis2 1.3, Tomcat 5.5.x, MTOM, caching to file using Axis2 attachmentDir

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              scheu@us.ibm.com Rich Scheuerle
              rwh Roy Willy Haug
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: