Comment 4 for bug 781913

Revision history for this message
Paul Everitt (paul-agendaless) wrote : Re: [Bug 781913] Re: Searchresults search for "Robert" gives a KeyError

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