Bug #204
空文字列を検索するとError
| Status: | Closed | Start date: | 06/28/2008 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 100% |
||
| Category: | bitclust | |||
| Target version: | - | |||
| reporter: | ruby_version: |
Description
以下の内容が200 OKで返ってくる。 Error undefined method `empty?' for nil:NilClass (NoMethodError) /usr/local/lib/bitclust/lib/bitclust/simplesearcher.rb:11:in `search_pattern' /usr/local/lib/bitclust/lib/bitclust/requesthandler.rb:84:in `handle_search' /usr/local/lib/bitclust/lib/bitclust/requesthandler.rb:42:in `_handle' /usr/local/lib/bitclust/lib/bitclust/requesthandler.rb:27:in `handle' /usr/local/lib/bitclust/lib/bitclust/interface.rb:57:in `do_GET' /usr/local/pkg/ruby-20051102/lib/ruby/1.9/webrick/cgi.rb:114:in `service' /usr/local/pkg/ruby-20051102/lib/ruby/1.9/webrick/cgi.rb:75:in `start' /usr/local/lib/bitclust/lib/bitclust/interface.rb:53:in `main' /usr/local/lib/bitclust/lib/bitclust/interface.rb:36:in `main' /var/www/doc.lrn/refm/api/view.cgi:6
Associated revisions
* lib/bitclust/simplesearcher.rb (BitClust::SimpleSearcher::search_pattern):
Fixed #204
* lib/bitclust/requesthandler.rb (BitClust::RequestHandler::handle_search):
ditto.
* test/test_simplesearcher.rb (TestSearcher::test_simple_search):
new assertions.
* lib/bitclust/screen.rb, lib/bitclust/requesthandler.rb: error
response should not be 200 OK. see #204
History
Updated by sheepman (Takashi Tamura) almost 4 years ago
- Status changed from Open to Closed
- Assignee set to sheepman (Takashi Tamura)
- % Done changed from 0 to 100
r2858 で修正