Bug in search

12 views
Skip to first unread message

Jason Olshefsky

unread,
Feb 6, 2015, 4:10:21 PM2/6/15
to roches...@googlegroups.com
This looks like an exploitable bug: if you put a partially quoted string in the search box, you'll get a runtime error.

In searching for (contained in single-quotes to delineate in text): '"village gate" print'

I got the following message:
Traceback (most recent call last):
  File "/home/rocwiki/sycamore/Sycamore/request.py", line 739, in run
    self.config.page_front_page).page_name, self)
  File "/home/rocwiki/sycamore/Sycamore/wikiaction.py", line 167, in do_search
    print_suggestion(this_search.spelling_suggestion(needle), request)
  File "/home/rocwiki/sycamore/Sycamore/search.py", line 473, in spelling_suggestion
    current_query_est_results)
  File "/home/rocwiki/sycamore/Sycamore/search.py", line 447, in get_suggested_terms
    this_word_corrected)
  File "/home/rocwiki/sycamore/Sycamore/search.py", line 402, in _fill_in_corrected
    flat_unstemmed_terms[i] != corrected_terms[i].lower()
IndexError: list index out of range

This is appeared the same when I tried '"test 2" a', but '"test 2"' works okay.

Pete B

unread,
Feb 11, 2015, 3:48:51 PM2/11/15
to Jason Olshefsky, roches...@googlegroups.com
Jason-thanks for this.
 
Ryan did you see this??

 

--
--
For options, view full headers. See also http://groups.google.com/group/rochesterwiki
---
You received this message because you are subscribed to the Google Groups "Rochester Wiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rochesterwik...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages