Jackrabbit Content Repository
  1. Jackrabbit Content Repository
  2. JCR-3175

InputContextImpl: cannot upload file larger than 2GB

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.10, 2.3.5
    • Fix Version/s: 2.2.11, 2.3.6
    • Component/s: jackrabbit-webdav
    • Labels:
      None
    • Environment:
      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)

      1. patch
        0.8 kB
        Javier Godoy

        Activity

        Hide
        Jukka Zitting added a comment -

        Merged to the 2.2 branch in revision 1235791.

        Show
        Jukka Zitting added a comment - Merged to the 2.2 branch in revision 1235791.
        Hide
        Julian Reschke added a comment -

        Patch applied with additional exception handling; thanks Javier,

        Show
        Julian Reschke added a comment - Patch applied with additional exception handling; thanks Javier,

          People

          • Assignee:
            Julian Reschke
            Reporter:
            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

                Development