Ticket #1 (closed defect: fixed)

Opened 8 months ago

Last modified 6 months ago

Thrudex crashed if the search term is "IT"

Reported by: thaidn@… Owned by: somebody
Priority: major Milestone:
Component: component1 Version:
Keywords: Cc:

Description

Step to reproduce:

$ cd tutorial/py

$ python

from BookmarkExample? import BookmarkManager?
bm = BookmarkManager?()
bm.load_tsv_file("../bookmarks.tsv")
bm.find("title:(IT)", sortby="title")

Searching for: title:(IT)

Traceback (most recent call last):

File "<stdin>", line 1, in <module>
File "BookmarkExample?.py", line 154, in find

ids = self.thrudex.search(q)

File "../gen-py/Thrudex/Thrudex.py", line 156, in search

return self.recv_search()

File "../gen-py/Thrudex/Thrudex.py", line 167, in recv_search

(fname, mtype, rseqid) = self._iprot.readMessageBegin()

File "usr/lib/python2.5/site-packages/thrift/protocol/TBinaryProtocol.py", line 115, in readMessageBegin
File "usr/lib/python2.5/site-packages/thrift/protocol/TBinaryProtocol.py", line 192, in readI32
File "usr/lib/python2.5/site-packages/thrift/transport/TTransport.py", line 47, in readAll
File "usr/lib/python2.5/site-packages/thrift/transport/TTransport.py", line 259, in read
File "usr/lib/python2.5/site-packages/thrift/transport/TTransport.py", line 266, in readFrame
File "usr/lib/python2.5/site-packages/thrift/transport/TTransport.py", line 47, in readAll
File "usr/lib/python2.5/site-packages/thrift/transport/TSocket.py", line 77, in read

thrift.transport.TTransport.TTransportException: None

Change History

Changed 6 months ago by jake

  • status changed from new to closed
  • resolution set to fixed

This is now fixed, since "it" is a stop word the lucene query was null, added check.

Note: See TracTickets for help on using tickets.