Re: Issue 2544 in reviewboard: HTTP 500 when performing search

2014-01-10 Thread reviewboard

Updates:
Status: Fixed

Comment #11 on issue 2544 by trowb...@gmail.com: HTTP 500 when performing  
search

http://code.google.com/p/reviewboard/issues/detail?id=2544

I've just pushed a change to master (aa44d9e) which switches out the search  
backend from pylucene (which is highly annoying) to django-haystack with  
the whoosh backend. This is therefore obsolete.


--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Issue 2544 in reviewboard: HTTP 500 when performing search

2014-01-10 Thread reviewboard


Comment #12 on issue 2544 by trowb...@gmail.com: HTTP 500 when performing  
search

http://code.google.com/p/reviewboard/issues/detail?id=2544

Pardon, the commit is 6859662.

--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Issue 2544 in reviewboard: HTTP 500 when performing search

2014-01-10 Thread reviewboard


Comment #13 on issue 2544 by chris.ar...@socrata.com: HTTP 500 when  
performing search

http://code.google.com/p/reviewboard/issues/detail?id=2544

This is awesome news! Will it be in the next release?

--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Issue 2544 in reviewboard: HTTP 500 when performing search

2014-01-10 Thread reviewboard


Comment #14 on issue 2544 by trowb...@gmail.com: HTTP 500 when performing  
search

http://code.google.com/p/reviewboard/issues/detail?id=2544

It's going to be in the 2.0 major release. A beta including this will be  
coming soon. The 1.7.x series still uses the old pylucene implementation.


--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Issue 2544 in reviewboard: HTTP 500 when performing search

2013-10-25 Thread reviewboard


Comment #10 on issue 2544 by chris.ar...@socrata.com: HTTP 500 when  
performing search

http://code.google.com/p/reviewboard/issues/detail?id=2544

We just hit this as well. Would love to see this patched...

Could someone who knows more about RB internals comment on the feasability  
of this change? I don't know much about pylucene


--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Issue 2544 in reviewboard: HTTP 500 when performing search

2013-08-28 Thread reviewboard


Comment #9 on issue 2544 by christia...@gmail.com: HTTP 500 when performing  
search

http://code.google.com/p/reviewboard/issues/detail?id=2544

Will the patch break on the versions of lucene2x where the original code  
works? Can anyone check that? If the patch works on all versions of  
lucene2x then shouldn't it be merged in?


--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Issue 2544 in reviewboard: HTTP 500 when performing search

2013-07-12 Thread reviewboard


Comment #7 on issue 2544 by subodhko...@gmail.com: HTTP 500 when performing  
search

http://code.google.com/p/reviewboard/issues/detail?id=2544

Same issue with 1.7.11 and 12.04 with pylucene, but the above fix in  
admin/views.py worked.


--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Issue 2544 in reviewboard: HTTP 500 when performing search

2013-06-28 Thread reviewboard


Comment #6 on issue 2544 by br...@wied.us: HTTP 500 when performing search
http://code.google.com/p/reviewboard/issues/detail?id=2544

Same problem here with 12.04

--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Issue 2544 in reviewboard: HTTP 500 when performing search

2013-06-26 Thread reviewboard


Comment #5 on issue 2544 by erik.l...@gmail.com: HTTP 500 when performing  
search

http://code.google.com/p/reviewboard/issues/detail?id=2544

This seems to still be an issue in rb 1.7.11 running on Ubuntu 12.04. The  
above patch works though, how do we generalize it enough to get it  
upstream? I assume that for some versions of lucene2x, the original block  
still works.


--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Issue 2544 in reviewboard: HTTP 500 when performing search

2013-04-08 Thread reviewboard


Comment #4 on issue 2544 by nmonk...@gmail.com: HTTP 500 when performing  
search

http://code.google.com/p/reviewboard/issues/detail?id=2544

This worked for me on 12.04, pylucene 2.3.1. Thanks for posting the  
solution.


--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Issue 2544 in reviewboard: HTTP 500 when performing search

2013-01-30 Thread reviewboard


Comment #2 on issue 2544 by alexander.heinl...@web.de: HTTP 500 when  
performing search

http://code.google.com/p/reviewboard/issues/detail?id=2544

Same problem here even with a recent Review Board 1.7.3 and PyLucene 2.3.1  
on Ubuntu 12.04.1 LTS:


ERROR - Exception thrown for user JuicyLucy at  
http://reviews/r/search/?q=whyisthissearchbroken


Documentstored/uncompressedid:669
Traceback (most recent call last):
   
File /usr/local/lib/python2.7/dist-packages/Django-1.4.3-py2.7.egg/django/core/handlers/base.py,  
line 111, in get_response

response = callback(request, *callback_args, **callback_kwargs)
   
File /usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.3-py2.7.egg/reviewboard/accounts/decorators.py,  
line 20, in _check

return login_required(view_func)(*args, **kwargs)
   
File /usr/local/lib/python2.7/dist-packages/Djblets-0.7.9-py2.7.egg/djblets/auth/util.py,  
line 47, in _checklogin

return view_func(request, *args, **kwargs)
   
File /usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.3-py2.7.egg/reviewboard/reviews/views.py,  
line 1425, in search

for hit in searcher.search(parser.parse(query))]
TypeError: Documentstored/uncompressedid:669
2013-01-30 08:38:14,602 - ERROR - Internal Server Error: /r/search/
Traceback (most recent call last):
   
File /usr/local/lib/python2.7/dist-packages/Django-1.4.3-py2.7.egg/django/core/handlers/base.py,  
line 111, in get_response

response = callback(request, *callback_args, **callback_kwargs)
   
File /usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.3-py2.7.egg/reviewboard/accounts/decorators.py,  
line 20, in _check

return login_required(view_func)(*args, **kwargs)
   
File /usr/local/lib/python2.7/dist-packages/Djblets-0.7.9-py2.7.egg/djblets/auth/util.py,  
line 47, in _checklogin

return view_func(request, *args, **kwargs)
   
File /usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.3-py2.7.egg/reviewboard/reviews/views.py,  
line 1425, in search

for hit in searcher.search(parser.parse(query))]
TypeError: Documentstored/uncompressedid:669


--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Issue 2544 in reviewboard: HTTP 500 when performing search

2013-01-30 Thread reviewboard


Comment #3 on issue 2544 by alexander.heinl...@web.de: HTTP 500 when  
performing search

http://code.google.com/p/reviewboard/issues/detail?id=2544

I fixed it by applying the following changes:

--- views_broken.py2013-01-30 13:33:34.129933013 +0100
+++ views_fixed.py 2013-01-30 13:58:57.755434114 +0100
@@ -1421,8 +1421,8 @@

 if lucene_is_2x:
 parser = lucene.QueryParser('text', lucene.StandardAnalyzer())
-result_ids = [int(lucene.Hit.cast_(hit).getDocument().get('id')) \
-  for hit in searcher.search(parser.parse(query))]
+hits = searcher.search(parser.parse(query))
+result_ids = [int(hits.doc(n).get('id')) for n in  
range(hits.length())]

 elif lucene_is_3x:
 parser = lucene.QueryParser(lucene.Version.LUCENE_CURRENT, 'text',
 lucene.StandardAnalyzer(lucene.Version.LUCENE_CURRENT))

Please verify whether this is correct for all lucene 2.x versions and still  
does what it should have done before :).


Regards
Alex

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.