Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004149 [Resin] minor always 07-30-10 11:11 08-02-10 10:15
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0004149: FileServlet range handling with firefox
Description (rep by Fred Howell)

Just ran into a FileServlet issue on resin 4.0.9 serving up a
500kb pdf file staticly - looks like it's a http range issue. Only shows up on firefox (using v3.6.8) - IE7, Safari, Opera,
Chrome (and wget using http1.0) work fine. Also tiny files are served
fine on firefox.

Could well be a firefox http range bug, but it does happen in a vanilla
install of resin, so I thought you'd like to know - to reproduce the issue:
  Copy a 500kb+ pdf into webapps/ROOT (the one I used was:
         http://foo.com/welcome3/welcome.pdf [^] )
  Point firefox at localhost:8080/welcome.pdf

--- log snippets:

jvm-default.log has:
 [10-07-30 18:18:50.171] {http://*:8080-2} [^] java.lang.NullPointerException
                                               at com.caucho.servlets.FileServlet.handleRange(FileServlet.java:527)
                                               at com.caucho.servlets.FileServlet.service(FileServlet.java:354)

The line in FileServlet,java is:-
   if (hasMore) {
     os.write('\r'); <---
     os.write('\n');


Firebug shows the request headers as below - response is a 500 internal server error.

Host: localhost:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Range: bytes=1-1,560214-564309

[ response header ]
Server: Resin/4.0.9
Content-Type: text/html; charset=windows-1252
Content-Length: 1727
Date: Fri, 30 Jul 2010 17:26:35 GMT


Test system is windows xp, java 1.6.0_21




Additional Information
Attached Files

- Relationships

- Notes
(0004689)
ferg
08-02-10 10:15

server/13y1
 

- Issue History
Date Modified Username Field Change
07-30-10 11:11 ferg New Issue
08-02-10 10:15 ferg Note Added: 0004689
08-02-10 10:15 ferg Assigned To  => ferg
08-02-10 10:15 ferg Status new => closed
08-02-10 10:15 ferg Resolution open => fixed
08-02-10 10:15 ferg Fixed in Version  => 4.0.10


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker