Random Empty Response with Rails 2.0
------------------------------------

                 Key: JRUBY-1879
                 URL: http://jira.codehaus.org/browse/JRUBY-1879
             Project: JRuby
          Issue Type: Bug
          Components: GoldSpike
         Environment: java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Server VM (build 1.6.0_03-b05, mixed mode)
Ubuntu 7.10
            Reporter: Mike Herrick


Rails 2.0 app works fine on C Ruby & Webbrick, but seemingly frequently 
responds with empty page bodies.

Saw behavior in 1.0.3 and verified that it is also in trunk JRuby (as of 
03-JAN) & rails-integrations project (goldspike) r864.

Example headers:

#### Good Response

http://localhost:8080/nedss/cmrs/1

GET /nedss/cmrs/1 HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071204 
Ubuntu/7.10 (gutsy) Firefox/2.0.0.11
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: 
_nedss_session=BAh7ByIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%250ASGFzaHsABjoKQHVzZWR7ADoMY3NyZl9pZCIlNTIyM2FjNGEzY2E2MDAzMTg5%250AMTM5MTZlNGEwY2M2YjU%253D--db5074183aa40e86f68b88f8784e0143a20930d1

HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
Cache-Control: private, max-age=0, must-revalidate
X-Runtime: 0.07500
Etag: "3f1cf0aadcaee7a89c477f5f93bc301b"
Content-Type: text/html;charset=utf-8
Content-Length: 3674
Date: Fri, 04 Jan 2008 01:40:32 GMT
----------------------------------------------------------

#### Blank Response (Bad)
http://localhost:8080/nedss/cmrs

GET /nedss/cmrs HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071204 
Ubuntu/7.10 (gutsy) Firefox/2.0.0.11
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://localhost:8080/nedss/cmrs/1
Cookie: 
_nedss_session=BAh7ByIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%250ASGFzaHsABjoKQHVzZWR7ADoMY3NyZl9pZCIlNTIyM2FjNGEzY2E2MDAzMTg5%250AMTM5MTZlNGEwY2M2YjU%253D--db5074183aa40e86f68b88f8784e0143a20930d1
If-None-Match: "afa932214d05665054faadf7ebaea1d0"

HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Fri, 04 Jan 2008 01:41:04 GMT
---------------------------------------------------------- 

Stefan Thomas Landro reports seeing similar behavior:

I'm seeing the same issue on my Windows box in both tomcat and jetty. Seems 
like a header issue:

In this case I get an empty body after doing a standard refresh (f5) in my 
browser:

http://localhost:8080/bp_rbac/sessions/login_rbac

GET /bp_rbac/sessions/login_rbac HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11 ) 
Gecko/20071127 Firefox/2.0.0.11
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q= 0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: JSESSIONID=BB9A6322ACCF6F68C6C40E1D9F86CA04; 
_bp_rbac_session_id=f65bf4157dac17f9539e5c4e051648ab
If-None-Match: "c87bc98ba6bf6a36ef0e4bb4863bc908"
Cache-Control: max-age=0

HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 03 Jan 2008 09:43:38 GMT
----------------------------------------------------------


The next time I press f5 I get this back:

http://localhost:8080/bp_rbac/sessions/login_rbac

GET /bp_rbac/sessions/login_rbac HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) 
Gecko/20071127 Firefox/2.0.0.11
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q= 0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: JSESSIONID=BB9A6322ACCF6F68C6C40E1D9F86CA04; 
_bp_rbac_session_id=f65bf4157dac17f9539e5c4e051648ab
Cache-Control: max-age=0

HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: _bp_rbac_session_id=f65bf4157dac17f9539e5c4e051648ab; path=/
Etag: "c87bc98ba6bf6a36ef0e4bb4863bc908"
X-Runtime: 0.00010
Cache-Control: private, max-age=0, must-revalidate
Content-Type: text/html;charset=utf-8
Content-Length: 1428
Date: Thu, 03 Jan 2008 09:44:23 GMT

--------------------------------------------------------------------

A Ctrl+f5 is also ok:


http://localhost:8080/bp_rbac/sessions/login_rbac

GET /bp_rbac/sessions/login_rbac HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) 
Gecko/20071127 Firefox/2.0.0.11
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q= 
0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: JSESSIONID=BB9A6322ACCF6F68C6C40E1D9F86CA04; 
_bp_rbac_session_id=f65bf4157dac17f9539e5c4e051648ab
Pragma: no-cache
Cache-Control: no-cache

HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: _bp_rbac_session_id=f65bf4157dac17f9539e5c4e051648ab; path=/
Etag: "c87bc98ba6bf6a36ef0e4bb4863bc908"
X-Runtime: 0.03100
Cache-Control: private, max-age=0, must-revalidate
Content-Type: text/html;charset=utf-8
Content-Length: 1428
Date: Thu, 03 Jan 2008 09:45:25 GMT

 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to