Compressed response bodies corrupted by 5.0beta1 #1309

Closed
distler opened this Issue Dec 2, 2014 · 2 comments

Comments

Projects
None yet
2 participants
@distler

distler commented Dec 2, 2014

A Rails 3.2 App, running under Apache 2.4.10+Passenger.

  • Works fine under Passenger 4.0.53.
  • Works fine if the client doesn't send a
    Accept-Encoding: gzip, deflate
    header.
  • But under 5.0.0beta1,
curl --compressed -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -D - http://my.host.com/my.app

yields a corrupted response body:

curl: (56) Illegal or missing hexadecimal sequence in chunked-encoding

Here are the headers returned by 5.0.0beta1:

HTTP/1.1 200 OK
Date: Tue, 02 Dec 2014 07:04:07 GMT
Server: Apache/2.4.10 (Unix) PHP/5.6.3 mod_fcgid/2.3.9 Phusion_Passenger/5.0.0.beta1 OpenSSL/1.0.1j
x-rack-cache: miss
cache-control: max-age=0, private, must-revalidate
x-ua-compatible: IE=Edge,chrome=1
x-runtime: 0.037541
x-request-id: 1381782bf06a3ad027529d02e9b39027
Connection: close
X-Powered-By: Phusion Passenger 5.0.0.beta1
set-cookie: _my_app_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTQ4ZTQ1YTkzMGZmOGIzYmE1OGRkYzZjOWVjYzE5ZDdmBjsAVEkiEF9jc3JmX3Rva2VuBjsARkkiMUZtNFNYaWlHbm5HbkJTOTlNazJUdk4wTGRUeWxsYkFzRmhDa3VVVCtIeUk9BjsARg%3D%3D--807d38990802de475761c5ee90578e0c594aabf8; path=/; HttpOnly
etag: "455c24be7140a1839dd5eea71d230225-gzip"
Transfer-Encoding: chunked
Status: 200 OK
Vary: Accept-Encoding
Content-Encoding: gzip
Strict-Transport-Security: max-age=31415926; includeSubDomains
Content-Length: 3260
Content-Type: application/xhtml+xml; charset=utf-8

and here are the headers returned by 4.0.53:

HTTP/1.1 200 OK
Date: Tue, 02 Dec 2014 07:17:31 GMT
Server: Apache/2.4.10 (Unix) PHP/5.6.3 mod_fcgid/2.3.9 Phusion_Passenger/4.0.53 OpenSSL/1.0.1j
X-UA-Compatible: IE=Edge,chrome=1
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: c38fee8098e4bdc8ffd52d1ad89a5718
X-Runtime: 0.039873
X-Rack-Cache: miss
X-Powered-By: Phusion Passenger 4.0.53
Set-Cookie: _my_app_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTFiZTYwN2M0N2E4OGQ2ZjRkMDM3NmVkMTI4NTY1ZWQ1BjsAVEkiEF9jc3JmX3Rva2VuBjsARkkiMXBWNmJ1ZGpDMUpRVS9nZVpaUWt3cXBxQm02ck16d25hYk43VmFNK3ZMUEU9BjsARg%3D%3D--551f05e242a987665f0ce3303f2caa78f0eab8d2; path=/; HttpOnly
ETag: "078193caf1e2156bd50d7ca1a4d7bbe5-gzip"
Status: 200 OK
Vary: Accept-Encoding
Content-Encoding: gzip
Strict-Transport-Security: max-age=31415926; includeSubDomains
Content-Length: 3249
Content-Type: application/xhtml+xml; charset=utf-8

@FooBarWidget FooBarWidget added this to the 5.0.0 beta 2 milestone Dec 2, 2014

@FooBarWidget

This comment has been minimized.

Show comment
Hide comment
@FooBarWidget

FooBarWidget Dec 18, 2014

Member

I could not reproduce this under Nginx or under Standalone. Let me try again with Apache.

Member

FooBarWidget commented Dec 18, 2014

I could not reproduce this under Nginx or under Standalone. Let me try again with Apache.

@FooBarWidget

This comment has been minimized.

Show comment
Hide comment
@FooBarWidget

FooBarWidget Dec 18, 2014

Member

Problem reproduced under Apache.

Member

FooBarWidget commented Dec 18, 2014

Problem reproduced under Apache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment