Bug 188680 - Attempt to join non-existing group results in traceback
Summary: Attempt to join non-existing group results in traceback
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora Infrastructure
Classification: Retired
Component: Account System
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mike McGrath
QA Contact:
URL: https://admin.fedora.redhat.com/accou...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-04-12 02:29 UTC by Jordan Nash
Modified: 2008-03-17 17:56 UTC (History)
0 users

Fixed In Version: 2
Clone Of:
Environment:
Last Closed: 2008-03-17 17:56:32 UTC
Embargoed:


Attachments (Terms of Use)
Screenshot of Resulting Error Information (124.92 KB, image/png)
2006-04-12 02:29 UTC, Jordan Nash
no flags Details

Description Jordan Nash 2006-04-12 02:29:32 UTC
Description of problem:
I attempted to join the group "art", following the directions I found at
http://fedoraproject.org/wiki/Artwork#contribute . 

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Log into Account System
2. Type "art" into GroupName
3. Click "Add".
  
Actual results:


I received this error:
"
AttributeError	Python 2.2.3: /usr/bin/python2
Tue Apr 11 19:31:48 2006

A problem occurred in a Python script. Here is the sequence of function calls
leading up to the error, in the order they occurred.

 /var/www/html/admin/accounts/userbox.cgi
  305     if username and action=='edit':
  306         website.handle_group_mods(dbh, form, 'userbox.cgi', username,
  307                                   None, fixed_item='username',
auth_username=auth_username)
  308 
  309 website.print_footer("Fedora User")
None undefined, fixed_item undefined, auth_username = 'jordann'

 /var/www/html/admin/accounts/website.py in
handle_group_mods(dbh=<website.PostgresDBConnection instance>,
form=FieldStorage(None, None, [MiniFieldStorage('user..., '0'),
MiniFieldStorage('_role_show_all', '1')]), url='userbox.cgi',
username='jordann', groupname=None, fixed_item='username', auth_username='jordann')
  403       role_group = form['groupname'].value
  404       role_user = form['username'].value
  405       allowed_actions = get_allowed_group_actions(dbh, auth_username,
role_group, group_info=group_info, for_username=role_user)
  406       if role_user == auth_username:
  407             permitted = 'add_self' in allowed_actions
allowed_actions undefined, global get_allowed_group_actions = <function
get_allowed_group_actions>, dbh = <website.PostgresDBConnection instance>,
auth_username = 'jordann', role_group = 'art', group_info = {}, for_username
undefined, role_user = 'jordann'

 /var/www/html/admin/accounts/website.py in
get_allowed_group_actions(dbh=<website.PostgresDBConnection instance>,
auth_username='jordann', groupname='art', group_info={}, for_username='jordann')
  370         my_group_info = group_info
  371     ginfo = get_group_info(dbh, groupname)
  372     my_group_info.update(ginfo)
  373     if my_group_info['name'] == 'cla_done':
  374         return []
my_group_info = {}, my_group_info.update = <built-in method update of dict
object>, ginfo = None

AttributeError: keys
      __doc__ = 'Attribute not found.'
      __getitem__ = <bound method AttributeError.__getitem__ of
<exceptions.AttributeError instance>>
      __init__ = <bound method AttributeError.__init__ of
<exceptions.AttributeError instance>>
      __module__ = 'exceptions'
      __str__ = <bound method AttributeError.__str__ of
<exceptions.AttributeError instance>>
      args = ('keys',) 
"

Expected results:

I expected to be added to the "art" group.

Additional info:

Comment 1 Jordan Nash 2006-04-12 02:29:32 UTC
Created attachment 127645 [details]
Screenshot of Resulting Error Information

Comment 2 Patrick Barnes 2006-04-12 02:42:49 UTC
This is just one of many missing checks in the Account System code. 
 
Updating Summary to better represent the bug. 

Comment 3 Ricky Zhou 2008-03-17 17:56:32 UTC
This should be fixed in FAS2 now :)


Note You need to log in before you can comment on or make changes to this bug.