Issue #6319 has been updated by vo.x (Vit Ondruch).

Status changed from Assigned to Closed

Sorry, but I can't reproduce the error any more with ruby 2.0.0dev (2012-04-23 trunk 35432) [x86_64-linux]. I'm closing the issue.
----------------------------------------
Bug #6319: TestWEBrickHTTPRequest and WEBrick::TestFileHandler fail
https://bugs.ruby-lang.org/issues/6319#change-26099

Author: vo.x (Vit Ondruch)
Status: Closed
Priority: Normal
Assignee: naruse (Yui NARUSE)
Category: 
Target version: 
ruby -v: ruby 2.0.0dev (2012-04-17 trunk 35368) [x86_64-linux]


Hi, testing on Fedora Rawhide, I observe several test fails in TestWEBrickHTTPRequest and WEBrick::TestFileHandler. This seems to be the same errors as in #4110, however I am not sure it they are related.

  4) Error:
test_parse_09(TestWEBrickHTTPRequest):
WEBrick::HTTPStatus::BadRequest: bad URI `/'.
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/httprequest.rb:115:in `rescue in parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/httprequest.rb:104:in `parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/https.rb:30:in `parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/test/webrick/test_httprequest.rb:21:in `test_parse_09'
  5) Error:
test_continue_sent(TestWEBrickHTTPRequest):
WEBrick::HTTPStatus::BadRequest: bad URI `/path'.
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/httprequest.rb:115:in `rescue in parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/httprequest.rb:104:in `parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/https.rb:30:in `parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/test/webrick/test_httprequest.rb:347:in `test_continue_sent'
  6) Error:
test_continue_not_sent(TestWEBrickHTTPRequest):
WEBrick::HTTPStatus::BadRequest: bad URI `/path'.
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/httprequest.rb:115:in `rescue in parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/httprequest.rb:104:in `parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/https.rb:30:in `parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/test/webrick/test_httprequest.rb:363:in `test_continue_not_sent'
  7) Error:
test_parse_10(TestWEBrickHTTPRequest):
WEBrick::HTTPStatus::BadRequest: bad URI `/'.
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/httprequest.rb:115:in `rescue in parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/httprequest.rb:104:in `parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/https.rb:30:in `parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/test/webrick/test_httprequest.rb:38:in `test_parse_10'
  8) Error:
test_parse_11(TestWEBrickHTTPRequest):
WEBrick::HTTPStatus::BadRequest: bad URI `/path'.
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/httprequest.rb:115:in `rescue in parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/httprequest.rb:104:in `parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/https.rb:30:in `parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/test/webrick/test_httprequest.rb:55:in `test_parse_11'
  9) Error:
test_parse_header2(TestWEBrickHTTPRequest):
WEBrick::HTTPStatus::BadRequest: bad URI `/foo/bar/../baz?q=a'.
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/httprequest.rb:115:in `rescue in parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/httprequest.rb:104:in `parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/https.rb:30:in `parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/test/webrick/test_httprequest.rb:126:in `test_parse_header2'
 10) Error:
test_simple_request(TestWEBrickHTTPRequest):
WEBrick::HTTPStatus::BadRequest: bad URI `/'.
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/httprequest.rb:115:in `rescue in parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/httprequest.rb:104:in `parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/https.rb:30:in `parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/test/webrick/test_httprequest.rb:11:in `test_simple_request'
 11) Error:
test_make_partial_content(WEBrick::TestFileHandler):
WEBrick::HTTPStatus::BadRequest: bad URI `/'.
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/httprequest.rb:115:in `rescue in parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/httprequest.rb:104:in `parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/lib/webrick/https.rb:30:in `parse'
    /builddir/build/BUILD/ruby-2.0.0-r35368/test/webrick/test_filehandler.rb:35:in `make_range_response'
    /builddir/build/BUILD/ruby-2.0.0-r35368/test/webrick/test_filehandler.rb:47:in `test_make_partial_content'


-- 
http://bugs.ruby-lang.org/