Bug 188680 - Attempt to join non-existing group results in traceback
Attempt to join non-existing group results in traceback
Status: CLOSED CURRENTRELEASE
Product: Fedora Infrastructure
Classification: Retired
Component: Account System (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Mike McGrath
https://admin.fedora.redhat.com/accou...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-04-11 22:29 EDT by Jordan Nash
Modified: 2008-03-17 13:56 EDT (History)
0 users

See Also:
Fixed In Version: 2
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-03-17 13:56:32 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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

  None (edit)
Description Jordan Nash 2006-04-11 22:29:32 EDT
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-11 22:29:32 EDT
Created attachment 127645 [details]
Screenshot of Resulting Error Information
Comment 2 Patrick Barnes 2006-04-11 22:42:49 EDT
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 13:56:32 EDT
This should be fixed in FAS2 now :)

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