You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Manish Tripathi (Created) (JIRA)" <ji...@apache.org> on 2012/02/18 09:17:59 UTC

[jira] [Created] (HTTPCLIENT-1167) BasicHttpCache.isIncompleteResponse() returns true incorrectly for gzipped/deflated responses

BasicHttpCache.isIncompleteResponse() returns true incorrectly for gzipped/deflated responses
---------------------------------------------------------------------------------------------

                 Key: HTTPCLIENT-1167
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1167
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: Cache
    Affects Versions: Snapshot
            Reporter: Manish Tripathi


When using CachingHttpClient with ContentEncodingHttpClient, and the compressed content is larger in size than de-compressed equivalent, BasicHttpCache.isIncompleteResponse()  incorrectly returns true, causing the CachingHttpClient to return 502 Bad Gateway error.
This happens because BasicHttpCache.isIncompleteResponse() is comparing Content-Length header value against the *decompressed* actual content length, whereas it should be comparing agains the *compressed* actual content length.

You can test the case using the following URL: http://static.ak.fbcdn.net/rsrc.php/v1/yf/r/A4HC_Y75I2u.css

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] [Resolved] (HTTPCLIENT-1167) BasicHttpCache.isIncompleteResponse() returns true incorrectly for gzipped/deflated responses

Posted by "Jon Moore (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jon Moore resolved HTTPCLIENT-1167.
-----------------------------------

    Resolution: Duplicate

Duplicate of HTTPCLIENT-1164 (same root cause).

                
> BasicHttpCache.isIncompleteResponse() returns true incorrectly for gzipped/deflated responses
> ---------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1167
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1167
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: Cache
>    Affects Versions: Snapshot
>            Reporter: Manish Tripathi
>
> When using CachingHttpClient with ContentEncodingHttpClient, and the compressed content is larger in size than de-compressed equivalent, BasicHttpCache.isIncompleteResponse()  incorrectly returns true, causing the CachingHttpClient to return 502 Bad Gateway error.
> This happens because BasicHttpCache.isIncompleteResponse() is comparing Content-Length header value against the *decompressed* actual content length, whereas it should be comparing agains the *compressed* actual content length.
> You can test the case using the following URL: http://static.ak.fbcdn.net/rsrc.php/v1/yf/r/A4HC_Y75I2u.css

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] [Closed] (HTTPCLIENT-1167) BasicHttpCache.isIncompleteResponse() returns true incorrectly for gzipped/deflated responses

Posted by "Jon Moore (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jon Moore closed HTTPCLIENT-1167.
---------------------------------

    
> BasicHttpCache.isIncompleteResponse() returns true incorrectly for gzipped/deflated responses
> ---------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1167
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1167
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: Cache
>    Affects Versions: Snapshot
>            Reporter: Manish Tripathi
>
> When using CachingHttpClient with ContentEncodingHttpClient, and the compressed content is larger in size than de-compressed equivalent, BasicHttpCache.isIncompleteResponse()  incorrectly returns true, causing the CachingHttpClient to return 502 Bad Gateway error.
> This happens because BasicHttpCache.isIncompleteResponse() is comparing Content-Length header value against the *decompressed* actual content length, whereas it should be comparing agains the *compressed* actual content length.
> You can test the case using the following URL: http://static.ak.fbcdn.net/rsrc.php/v1/yf/r/A4HC_Y75I2u.css

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org