(EURASIA) Error in tagusers

Bug #698150 reported by Jim B. Glenn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Won't Fix
Low
Unassigned

Bug Description

reported via error monitor:

ENTRY
Tue Jan 4 13:10:46 2011
Exception when processing https://efnetwork.org/tagusers.html?tag=Erik-Ferguson&docid=48349499
Traceback (most recent call last):
  File "/opt/karl/eurasia/3.13.4-4/src/karl/karl/errorlog.py", line 15, in middleware
    return app(environ, start_response)
  File "/opt/karl/eurasia/3.13.4-4/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/eurasia/3.13.4-4/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/eurasia/3.13.4-4/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/eurasia/3.13.4-4/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/eurasia/3.13.4-4/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/eurasia/3.13.4-4/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/eurasia/3.13.4-4/eggs/repoze.bfg-1.2-py2.5.egg/repoze/bfg/router.py", line 130, in __call__
    response = view_callable(context, request)
  File "/opt/karl/eurasia/3.13.4-4/eggs/repoze.bfg-1.2-py2.5.egg/repoze/bfg/configuration.py", line 1753, in _secured_view
    return view(context, request)
  File "/opt/karl/eurasia/3.13.4-4/eggs/repoze.bfg-1.2-py2.5.egg/repoze/bfg/configuration.py", line 1704, in _rendered_view
    response = view(context, request)
  File "/opt/karl/eurasia/3.13.4-4/src/karl/karl/views/tags.py", line 406, in tag_users_view
    profile = profiles[userid]
  File "/opt/karl/eurasia/3.13.4-4/eggs/repoze.folder-0.6.2-py2.5.egg/repoze/folder/__init__.py", line 96, in __getitem__
    return self.data[name]
KeyError: u'MKennedy'

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

Not a high priority.

Changed in karl3:
assignee: nobody → Chris Rossi (chris-archimedeanco)
importance: Undecided → Low
milestone: none → m52
Revision history for this message
Chris Rossi (chris-archimedeanco) wrote :

This appears to be due to a tag referring to a user that was deleted back when the system allowed deletes. More than likely we just need an evolve script to clean up tags created by deleted users. We can either delete the tag or keep the tag but change the user to a system user.

Changed in karl3:
status: New → Confirmed
Revision history for this message
Paul Everitt (paul-agendaless) wrote : Re: [Bug 698150] Re: (EURASIA) Error in tagusers

Delete the tag, I think that is far simpler.

--Paul

On Jan 12, 2011, at 12:32 PM, Chris Rossi wrote:

> This appears to be due to a tag referring to a user that was deleted
> back when the system allowed deletes. More than likely we just need an
> evolve script to clean up tags created by deleted users. We can either
> delete the tag or keep the tag but change the user to a system user.
>
>
> ** Changed in: karl3
> Status: New => Confirmed
>
> --
> You received this bug notification because you are subscribed to KARL3.
> https://bugs.launchpad.net/bugs/698150
>
> Title:
> (EURASIA) Error in tagusers
>
> Status in KARL3:
> Confirmed
>
> Bug description:
> reported via error monitor:
>
> ENTRY
> Tue Jan 4 13:10:46 2011
> Exception when processing https://efnetwork.org/tagusers.html?tag=Erik-Ferguson&docid=48349499
> Traceback (most recent call last):
> File "/opt/karl/eurasia/3.13.4-4/src/karl/karl/errorlog.py", line 15, in middleware
> return app(environ, start_response)
> File "/opt/karl/eurasia/3.13.4-4/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/eurasia/3.13.4-4/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/eurasia/3.13.4-4/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/eurasia/3.13.4-4/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/eurasia/3.13.4-4/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/eurasia/3.13.4-4/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/eurasia/3.13.4-4/eggs/repoze.bfg-1.2-py2.5.egg/repoze/bfg/router.py", line 130, in __call__
> response = view_callable(context, request)
> File "/opt/karl/eurasia/3.13.4-4/eggs/repoze.bfg-1.2-py2.5.egg/repoze/bfg/configuration.py", line 1753, in _secured_view
> return view(context, request)
> File "/opt/karl/eurasia/3.13.4-4/eggs/repoze.bfg-1.2-py2.5.egg/repoze/bfg/configuration.py", line 1704, in _rendered_view
> response = view(context, request)
> File "/opt/karl/eurasia/3.13.4-4/src/karl/karl/views/tags.py", line 406, in tag_users_view
> profile = profiles[userid]
> File "/opt/karl/eurasia/3.13.4-4/eggs/repoze.folder-0.6.2-py2.5.egg/repoze/folder/__init__.py", line 96, in __getitem__
> return self.data[name]
> KeyError: u'MKennedy'
>
>

Revision history for this message
Erik Tepley-Ferguson (etepleyferguson) wrote :

For what it's worth, I'd agree with Paul. I seem to recall users' mentioning a couple of not-really-sensible tags created by now-deleted users. We've been hung up on how to get rid of the more silly tags. To my knowledge, only three or so of our accounts have been deleted. We won't lose any considerable amount of important input if deleted users' tags are deleted at this point.

Thanks for catching this, Jim!

-Erik

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

Chris, is your recommendation something that requires console access?

Changed in karl3:
milestone: m52 → m53
Changed in karl3:
milestone: m53 → m56
Changed in karl3:
assignee: Chris Rossi (chris-archimedeanco) → nobody
milestone: m61 → m999
status: Confirmed → Won't Fix
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.