Bug 840724

Summary: Group activity page: AttributeError: 'NoneType' object has no attribute 'display_name'
Product: [Community] Beaker Reporter: Dan Callaghan <dcallagh>
Component: web UIAssignee: Raymond Mancy <rmancy>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.9CC: bpeck, dcallagh, ebaak, rmancy, stl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-20 00:38:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 747000    

Description Dan Callaghan 2012-07-17 05:19:27 UTC
Version-Release number of selected component (if applicable):

Tried to view /activity/groups:

2012-07-17 01:04:02,289 cherrypy.msg INFO HTTP: Page handler: <bound method Activities.group of <bkr.server.activity.Activities object at 0x7f5f2a61b410>>
Traceback (most recent call last):
  File "build/lib/bkr/server/templates/my_paginate_datagrid.py", line 165, in _pull
  File "/usr/lib/python2.6/site-packages/turbogears/widgets/datagrid.py", line 66, in get_field
    return self.getter(row)
  File "/usr/lib/python2.6/site-packages/bkr/server/activity.py", line 132, in <lambda>
    widgets.PaginateDataGrid.Column(name='object_name', getter=lambda x: x.object_name(), title='Object', options=dict(sortable=False)),
  File "/usr/lib/python2.6/site-packages/bkr/server/model.py", line 3089, in object_name
    return "Group: %s" % self.object.display_name
AttributeError: 'NoneType' object has no attribute 'display_name'
Error in code generated from template file 'build/lib/bkr/server/templates/grid.kid'

rmancy theorised that this is because the group has been deleted but its activity rows remain.

Comment 1 Raymond Mancy 2012-07-17 09:09:55 UTC
This is correct. It's an existing bug,and I'd say we've just been lucky that we haven't hit it before.

It should be solved by this patch here http://gerrit.beaker-project.org/#/c/1216/

Comment 2 Dan Callaghan 2012-07-18 01:05:00 UTC
Needed for bug 747000

Comment 3 Dan Callaghan 2012-07-20 00:38:36 UTC
Beaker 0.9.1 has been released.