Searchresults search for "Robert" gives a KeyError

Bug #781913 reported by Paul Everitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Fix Released
Medium
Chris Rossi

Bug Description

At:

  https://karlstaging.gocept.com/branch2/osf/searchresults.html?body=robert

...we get:

...
 File "/srv/osfkarltest/staging/branch2/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/configuration.py", line 1704, in _rendered_view
   response = view(context, request)
 File "/srv/osfkarltest/staging/branch2/src/karl/karl/views/search.py", line 235, in searchresults_view
   author = profiles[doc.creator]
 File "/srv/osfkarltest/staging/branch2/eggs/repoze.folder-0.6.2-py2.6.egg/repoze/folder/__init__.py", line 96, in __getitem__
   return self.data[name]
KeyError: u'None'

Tags: r3.59
Revision history for this message
Nat Katin-Borland (nborland) wrote :

This happens with many search terms, not just Robert. Seems like some sort of database issue.

-Nat

Changed in karl3:
milestone: m56 → m58
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

I was wrong, this also happens on branch2 (which we plan to roll out this week.)

Changed in karl3:
importance: Low → Medium
milestone: m58 → m56
Revision history for this message
Chris Rossi (chris-archimedeanco) wrote : Re: [Bug 781913] Re: Searchresults search for "Robert" gives a KeyError

Just to clarify: AFAICT this has only ever happened on branch2. That's
correct?

Changed in karl3:
status: New → In Progress
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

I thought it happened on branch1 as well but it doesn't happen now. Looking at the branch1 error monitor:

Mon May 9 15:33:15 2011 Exception when processing https://karlstaging.gocept.com/branch1/osf/searchresults.html?body=doggy Referer: Traceback (most recent call last): File "/srv/osfkarltest/staging/branch1/src/karl/karl/errorlog.py", line 16, in middleware return app(environ, start_response) File "/srv/osfkarltest/staging/branch1/eggs/repoze.retry-0.9.4-py2.6.egg/repoze/retry/__init__.py", line 88, in __call__ app_iter = self.application(environ, replace_start_response) File "/srv/osfkarltest/staging/branch1/eggs/repoze.zodbconn-0.11-py2.6.egg/repoze/zodbconn/connector.py", line 21, in __call__ result = self.next_app(environ, start_response) File "/srv/osfkarltest/staging/branch1/eggs/repoze.tm2-1.0a5-py2.6.egg/repoze/tm/__init__.py", line 23, in __call__ result = self.application(environ, save_status_and_headers) File "/srv/osfkarltest/staging/branch1/eggs/repoze.who-1.0.15-py2.6.egg/repoze/who/middleware.py", line 107, in __call__ app_iter = app(environ, wrapper.wrap_start_response) File "/srv/osfkarltest/staging/branch1/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/router.py", line 130, in __call__ response = view_callable(context, request) File "/srv/osfkarltest/staging/branch1/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/configuration.py", line 1753, in _secured_view return view(context, request) File "/srv/osfkarltest/staging/branch1/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/configuration.py", line 1704, in _rendered_view response = view(context, request) File "/srv/osfkarltest/staging/branch1/src/karl/karl/views/search.py", line 214, in searchresults_view description = summarizer(result, text_term) File "/srv/osfkarltest/staging/branch1/src/karl/karl/models/adapters.py", line 589, in __call__ summary = self.index.get_contextual_summary( AttributeError: 'KarlPGTextIndex' object has no attribute 'get_contextual_summary'

--Paul

On May 16, 2011, at 1:02 PM, Chris Rossi wrote:

> Just to clarify: AFAICT this has only ever happened on branch2. That's
> correct?
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/781913
>
> Title:
> Searchresults search for "Robert" gives a KeyError
>
> Status in KARL3:
> New
>
> Bug description:
> At:
>
> https://karlstaging.gocept.com/branch2/osf/searchresults.html?body=robert
>
> ...we get:
>
> ...
> File "/srv/osfkarltest/staging/branch2/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/configuration.py", line 1704, in _rendered_view
> response = view(context, request)
> File "/srv/osfkarltest/staging/branch2/src/karl/karl/views/search.py", line 235, in searchresults_view
> author = profiles[doc.creator]
> File "/srv/osfkarltest/staging/branch2/eggs/repoze.folder-0.6.2-py2.6.egg/repoze/folder/__init__.py", line 96, in __getitem__
> return self.data[name]
> KeyError: u'None'
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/karl3/+bug/781913/+subscribe

Changed in karl3:
status: In Progress → Fix Committed
Revision history for this message
JimPGlenn (jpglenn09) wrote :

fixed

Changed in karl3:
status: Fix Committed → Fix Released
JimPGlenn (jpglenn09)
tags: added: r3.59
removed: livesearch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.