fedora-infra / fas

Fedora Account System
https://admin.fedoraproject.org/accounts
GNU General Public License v2.0
40 stars 50 forks source link

Some users generated by the fake data generator can't be viewed #147

Closed ryanlerch closed 7 years ago

ryanlerch commented 8 years ago

After setting up a fresh test instance of FAS3, and filling it with the fake data, some of the users can't be viewed, and the following error is returned:

AttributeError: 'GroupMembership' object has no attribute 'group'

Traceback (most recent call last)

    File "/home/rlerch/.virtualenvs/fas-python2.7/lib/python2.7/site-packages/pyramid_debugtoolbar/panels/performance.py", line 57, in resource_timer_handler

     [Display the sourcecode for this frame]  [Open an interactive python shell in this frame] result = handler(request)

    File "/home/rlerch/.virtualenvs/fas-python2.7/lib/python2.7/site-packages/pyramid/tweens.py", line 20, in excview_tween

     [Display the sourcecode for this frame]  [Open an interactive python shell in this frame] response = handler(request)

    File "/home/rlerch/.virtualenvs/fas-python2.7/lib/python2.7/site-packages/pyramid_tm/__init__.py", line 101, in tm_tween

     [Display the sourcecode for this frame]  [Open an interactive python shell in this frame] reraise(*exc_info)

    File "/home/rlerch/.virtualenvs/fas-python2.7/lib/python2.7/site-packages/pyramid_tm/__init__.py", line 83, in tm_tween

     [Display the sourcecode for this frame]  [Open an interactive python shell in this frame] response = handler(request)

    File "/home/rlerch/.virtualenvs/fas-python2.7/lib/python2.7/site-packages/pyramid/router.py", line 145, in handle_request

     [Display the sourcecode for this frame]  [Open an interactive python shell in this frame] view_name

    File "/home/rlerch/.virtualenvs/fas-python2.7/lib/python2.7/site-packages/pyramid/view.py", line 541, in _call_view

     [Display the sourcecode for this frame]  [Open an interactive python shell in this frame] response = view_callable(context, request)

    File "/home/rlerch/.virtualenvs/fas-python2.7/lib/python2.7/site-packages/pyramid/config/views.py", line 353, in rendered_view

     [Display the sourcecode for this frame]  [Open an interactive python shell in this frame] result = view(context, request)

    File "/home/rlerch/.virtualenvs/fas-python2.7/lib/python2.7/site-packages/pyramid/config/views.py", line 483, in _class_requestonly_view

     [Display the sourcecode for this frame]  [Open an interactive python shell in this frame] response = getattr(inst, attr)()

    File "/home/rlerch/Source/fas/fas/views/people.py", line 230, in profile

     [Display the sourcecode for this frame]  [Open an interactive python shell in this frame] if g.group and g.group.requires_ssh:

AttributeError: 'GroupMembership' object has no attribute 'group'