FormerUser profile gives a None when editing

Bug #617031 reported by Jim B. Glenn
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Invalid
Low
Carlos de la Guardia

Bug Description

I noticed this on staging for osi after this week's update.

The latest evolve makes a user called formeruser which I understand will own content from deleted users.

This user shows up in the people list.
When I clicked "Edit" on their profile, I get this url:
http://staging.osi.sixfeetup.com/profiles/formeruser/admin_edit_profile.html

With a KARL General Error:

 Traceback (most recent call last):
  File "/opt/karlstaging/karl/osi/3.22-0/src/karl/karl/errorpage.py", line 51, in __call__
    resp = req.get_response(self.app)
  File "/opt/karlstaging/karl/osi/3.22-0/eggs/WebOb-0.9.8.0_osi1-py2.5.egg/webob/request.py", line 920, in get_response
    application, catch_exc_info=False)
  File "/opt/karlstaging/karl/osi/3.22-0/eggs/WebOb-0.9.8.0_osi1-py2.5.egg/webob/request.py", line 888, in call_application
    app_iter = application(self.environ, start_response)
  File "/opt/karlstaging/karl/osi/3.22-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/karlstaging/karl/osi/3.22-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/karlstaging/karl/osi/3.22-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/karlstaging/karl/osi/3.22-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/karlstaging/karl/osi/3.22-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/karlstaging/karl/osi/3.22-0/eggs/repoze.bfg-1.2-py2.5.egg/repoze/bfg/router.py", line 130, in __call__
    response = view_callable(context, request)
  File "/opt/karlstaging/karl/osi/3.22-0/eggs/repoze.bfg-1.2-py2.5.egg/repoze/bfg/configuration.py", line 1520, in __call__
    return view(context, request)
  File "/opt/karlstaging/karl/osi/3.22-0/eggs/repoze.bfg-1.2-py2.5.egg/repoze/bfg/configuration.py", line 1753, in _secured_view
    return view(context, request)
  File "/opt/karlstaging/karl/osi/3.22-0/eggs/repoze.bfg-1.2-py2.5.egg/repoze/bfg/configuration.py", line 1704, in _rendered_view
    response = view(context, request)
  File "/opt/karlstaging/karl/osi/3.22-0/eggs/repoze.bfg.formish-0.3-py2.5.egg/repoze/bfg/formish/zcml.py", line 164, in __call__
    controller = self.controller_factory(context, request)
  File "/opt/karlstaging/karl/osi/3.22-0/src/karl/karl/views/people.py", line 259, in __init__
    self.user_groups = set(self.user['groups'])
TypeError: 'NoneType' object is unsubscriptable

summary: - FormerUser edit profile
+ FormerUser profile gives a None when editing
Changed in karl3:
assignee: nobody → Chris Rossi (chris-archimedeanco)
importance: Undecided → Low
milestone: none → m46
Changed in karl3:
milestone: m46 → m47
Revision history for this message
Carlos de la Guardia (cguardia) wrote :

This is no longer true either on my sandbox or staging. The formeruser profile is viewable, but not editable (no link appears and if you type the edit URL manually a forbidden error results).

Changed in karl3:
assignee: Chris Rossi (chris-archimedeanco) → Carlos de la Guardia (cguardia)
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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