# \[Backport #3425\] Error: test\_filehandler(WEBrick::TestFileHandler)

**URL:** <https://www.ruby-forum.com/t/backport-3425-error-test-filehandler-webrick-testfilehandler/189993>\
**Category:** Development\
**Created:** [June 11, 2010, 3:20am UTC](https://www.ruby-forum.com/t/backport-3425-error-test-filehandler-webrick-testfilehandler/189993 "2010-06-11T03:20:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/77aa72/32.png) [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Post date:** [June 11, 2010, 3:20am UTC](https://www.ruby-forum.com/t/backport-3425-error-test-filehandler-webrick-testfilehandler/189993/1 "2010-06-11T03:20:29Z")

</div>

Backport #3425: Error: test\_filehandler(WEBrick::TestFileHandler)  
[http://redmine.ruby-lang.org/issues/show/3425](http://redmine.ruby-lang.org/issues/show/3425)

e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA  
e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal

test\_filehandler(WEBrick::TestFileHandler) e$B$Ne(B Error  
e$B$,\<j85$N4D6-$G$be(B chkbuild e$B$G$bH/@8$7$F$$$^$9!#e(B

[http://www.rubyist.net/~akr/chkbuild/debian/ruby-1.8.7/log/20100611T085812.log.txt.gz](http://www.rubyist.net/~akr/chkbuild/debian/ruby-1.8.7/log/20100611T085812.log.txt.gz)

1. Error:  
test\_filehandler(WEBrick::TestFileHandler):  
NameError: undefined local variable or method `log' for #<WEBrick::TestFileHandler:0xb74a5058> ./test/webrick/test_filehandler.rb:96:in `test\_filehandler’  
/home/akr/chkbuild/tmp/build/ruby-1.8.7/20100611T085812/ruby/lib/net/http.rb:1054:in  
`request' /home/akr/chkbuild/tmp/build/ruby-1.8.7/20100611T085812/ruby/lib/net/http.rb:2144:in `reading\_body’  
/home/akr/chkbuild/tmp/build/ruby-1.8.7/20100611T085812/ruby/lib/net/http.rb:1053:in  
`request' /home/akr/chkbuild/tmp/build/ruby-1.8.7/20100611T085812/ruby/lib/net/http.rb:1037:in `request’  
/home/akr/chkbuild/tmp/build/ruby-1.8.7/20100611T085812/ruby/lib/net/http.rb:543:in  
`start' /home/akr/chkbuild/tmp/build/ruby-1.8.7/20100611T085812/ruby/lib/net/http.rb:1035:in `request’  
./test/webrick/test\_filehandler.rb:95:in `test_filehandler' ./test/webrick/utils.rb:38:in `call’  
./test/webrick/utils.rb:38:in `start_server' ./test/webrick/utils.rb:46:in `start\_httpserver’  
./test/webrick/test\_filehandler.rb:79:in `test\_filehandler’

---

<div class="post-metadata">

**Author:** ![Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/77aa72/32.png) [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Post date:** [September 8, 2010, 4:45pm UTC](https://www.ruby-forum.com/t/backport-3425-error-test-filehandler-webrick-testfilehandler/189993/2 "2010-09-08T16:45:00Z")

</div>

e$B%A%1%C%He(B #3425 e$B$,99?7$5$l$^$7$?!#e(B (by Hiroshi NAKAMURA)

e$B%+%F%4%je(B libe$B$K%;%C%He(B  
e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B

r28336 fixed this. Closing.

r28336 | shyouhei | 2010-06-16 15:57:47 +0900 (Wed, 16 Jun 2010) | 6  
lines

## merge revision(s) 26344,27367: \* lib/net/http.rb (Net::HTTPHeader#{content\_range,range\_length}): use inclusive range same as the header representation. \* test/webrick/utils.rb (TestWEBrick#start\_server): add log for test\_filehandler.rb

[http://redmine.ruby-lang.org/issues/show/3425](http://redmine.ruby-lang.org/issues/show/3425)
