(OXFAM Prod) KeyError in blog

Bug #616360 reported by Jim B. Glenn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Fix Released
Medium
Tres Seaver

Bug Description

Reported via error_monitor 5x:

ENTRY
Wed Aug 11 10:16:54 2010
Exception when processing https://karl.oxfam.org.uk/communities/us-foundation-donors/blog
Traceback (most recent call last):
  File "/opt/karl/oxfam/3.5-0/src/karl/karl/errorlog.py", line 15, in middleware
    return app(environ, start_response)
  File "/opt/karl/oxfam/3.5-0/eggs/repoze.zodbconn-0.11-py2.5.egg/repoze/zodbconn/connector.py", line 21, in __call__
    result = self.next_app(environ, start_response)
  File "/opt/karl/oxfam/3.5-0/eggs/repoze.retry-0.9.4-py2.5.egg/repoze/retry/__init__.py", line 88, in __call__
    app_iter = self.application(environ, replace_start_response)
  File "/opt/karl/oxfam/3.5-0/eggs/repoze.tm2-1.0a5-py2.5.egg/repoze/tm/__init__.py", line 23, in __call__
    result = self.application(environ, save_status_and_headers)
  File "/opt/karl/oxfam/3.5-0/eggs/Paste-1.7.2-py2.5.egg/paste/registry.py", line 350, in __call__
    app_iter = self.application(environ, start_response)
  File "/opt/karl/oxfam/3.5-0/eggs/repoze.who-1.0.15-py2.5.egg/repoze/who/middleware.py", line 107, in __call__
    app_iter = app(environ, wrapper.wrap_start_response)
  File "/opt/karl/oxfam/3.5-0/eggs/repoze.browserid-0.3-py2.5.egg/repoze/browserid/middleware.py", line 127, in __call__
    return self.app(environ, start_response)
  File "/opt/karl/oxfam/3.5-0/eggs/repoze.bfg-1.2-py2.5.egg/repoze/bfg/router.py", line 130, in __call__
    response = view_callable(context, request)
  File "/opt/karl/oxfam/3.5-0/eggs/repoze.bfg-1.2-py2.5.egg/repoze/bfg/configuration.py", line 1753, in _secured_view
    return view(context, request)
  File "/opt/karl/oxfam/3.5-0/src/karl/karl/content/views/blog.py", line 110, in show_blog_view
    profile = profiles[entry.creator]
  File "/opt/karl/oxfam/3.5-0/eggs/repoze.folder-0.4-py2.5.egg/repoze/folder/__init__.py", line 89, in __getitem__
    return self.data[name]
KeyError: u'kuhlermckeown'

Tags: karl-support
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

I put this in M46 for after this week.

Changed in karl3:
assignee: nobody → Tres Seaver (tseaver)
importance: Undecided → Low
milestone: none → m46
Revision history for this message
Jim B. Glenn (jimbglenn) wrote :

It appears that this blog's listing is completely broken.
Is this related to a missing profile name, aka. a deleted user's profile?

I'm getting regular errors in error monitor for same error.

Revision history for this message
Jim B. Glenn (jimbglenn) wrote :

reported by OXFAM:

We are receiving a 'General Error' when clicking on the BLOG tab within
https://karl.oxfam.org.uk/communities/us-foundation-donors/view.html.
This is independent of machine or user so appears to be a fault with KARL.

Please can you assist ?
Thanks in advance
David

reported via rt: https://rt01.sixfeetup.com/Ticket/Display.html?id=81064

Changed in karl3:
importance: Low → Medium
tags: added: karl-support
Revision history for this message
Tres Seaver (tseaver) wrote :

This pretty much has to be a deleted user whose ownership / creatorship
of content wasn't fixed up. I can bang in a workaround in the code, but
the better fix is probably to change the data such that the creator
points to the "removed user" profile.

Revision history for this message
Chris Rossi (chris-archimedeanco) wrote :

An evolve script for this case is already on trunk. Oxfam in production is at level 16, and level 18 is the evolve script to handle content from previously deleted users.

Changed in karl3:
status: New → Fix Committed
Revision history for this message
Jim B. Glenn (jimbglenn) wrote :
Revision history for this message
JimPGlenn (jpglenn09) wrote :

fixed

Changed in karl3:
status: Fix Committed → Fix Released
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.