You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by "Gonzalo Aguilar (JIRA)" <ji...@apache.org> on 2013/03/04 20:39:13 UTC

[jira] [Created] (WOOKIE-403) ProxyServlet doesn't work well on chunked data

Gonzalo Aguilar created WOOKIE-403:
--------------------------------------

             Summary: ProxyServlet doesn't work well on chunked data
                 Key: WOOKIE-403
                 URL: https://issues.apache.org/jira/browse/WOOKIE-403
             Project: Wookie
          Issue Type: Bug
          Components: Server
    Affects Versions: 0.15.0
         Environment: java 1.6, tomcat 6.x.x
            Reporter: Gonzalo Aguilar
            Priority: Blocker
             Fix For: 0.15.0


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. 



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira