Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3175

InputContextImpl: cannot upload file larger than 2GB

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.10, 2.3.5
    • 2.2.11, 2.3.6
    • jackrabbit-webdav
    • None
    • Not applicable

    Description

      If an entity is larger than 2GB, the Content-Length cannot be obtained by using getIntHeader because of integer overflow. One needs to parse the value of the header from string to long. This issue affects InputContextImpl.getContentLength() in org.apache.jackrabbit.webdav.io from webdav/java (the current behavior is that the header is converted from string to int by the servlet API, then from int to long by Jackrabbit)

      Testcase: largefile from Litmus. (test 3 - large_put fails when the PUT request is received)

      Attachments

        1. patch
          0.8 kB
          Javier Godoy

        Activity

          People

            reschke Julian Reschke
            rjgodoy Javier Godoy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified