Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-15921

[GSS](7.1.z) UNDERTOW-1444 - Range headers do not seem to be handled correctly for files larger than 10 mb

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.6.CR1, 7.1.6.GA
    • 7.1.4.GA
    • Undertow
    • None

      JBoss does not properly handle requests with range headers for files greater than 10 mb in size. For example:

      curl -v -H "Range: bytes=999999-999999" localhost:8080/app/largefile
      ...
      < HTTP/1.1 206 Partial Content
      < X-Powered-By: Undertow/1
      < Server: JBoss-EAP/7
      < Accept-Ranges: bytes
      < Date: Mon, 26 Nov 2018 20:13:59 GMT
      < Connection: keep-alive
      < Last-Modified: Mon, 26 Nov 2018 20:13:19 GMT
      < Content-Range: bytes 999999-999999/10504296
      < Content-Type: text/html
      < Content-Length: 1
      < 
      * Excess found in a non pipelined read: excess = 16086, size = 1, maxdownload = 1, bytecount = 0
      * Connection #0 to host localhost left intact
      

      So with the above, JBoss indicates a content length of 1 as we'd expect, but the response data sent back to the client actually appears to be the first 16 kb of the file instead of the requested range.

              rhn-cservice-bbaranow Bartosz Baranowski
              rhn-cservice-bbaranow Bartosz Baranowski
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: