Uploaded image for project: 'Wookie'
  1. Wookie
  2. WOOKIE-403

ProxyServlet doesn't work well on chunked data

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.13.0
    • Fix Version/s: 0.14.0
    • Component/s: Server
    • Labels:
      None
    • Environment:
      java 1.6, tomcat 6.x.x

      Description

      Proxy Servlet does not manage well chunked data transfer of HTTP/1.1 spec.

      Here is the tcp trace:
      GET /lead-services-war/services/rest/lead/count.json HTTP/1.1
      user-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0
      accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
      accept-language: es,es-es;q=0.8,en;q=0.5,en-us;q=0.3
      accept-encoding: gzip, deflate
      cookie: JSESSIONID=33D24D7B4F4709B7F266EF3A57340674; __utma=111872281.1736180143.1360930537.1360930537.1361652402.2; __utmz=111872281.1360930537.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); WT_FPC=id=2bc1294b2ddc53454011361645134465:lv=1361646021835:ss=1361645134465
      connection: keep-alive
      Host: localhost:8080
      ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
      HTTP/1.1 200 OK
      Server: Apache-Coyote/1.1
      Date: Mon, 04 Mar 2013 01:31:55 GMT
      Content-Type: application/json;charset=UTF-8
      Transfer-Encoding: chunked

      36
      {"status":"OK","data":{"@xsi.type":"xs:int","$":"21"}}
      0

      The data is received correctly but is not returned to client correctly.

      This is because the "Transfer-Encoding: chunked" header is passed over but the data is "unchunked" on proxy. So client expect chunked data format but the data is returnes as is.

        Attachments

          Activity

            People

            • Assignee:
              scottbw Scott Wilson
              Reporter:
              gad Gonzalo Aguilar
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: