Bug 670975 - role_check causes a type error when user is not in db
Summary: role_check causes a type error when user is not in db
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
: Sprint 21
Assignee: Jason Connor
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-19 20:01 UTC by Pradeep Kilambi
Modified: 2014-03-31 01:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-18 03:37:36 UTC


Attachments (Terms of Use)

Description Pradeep Kilambi 2011-01-19 20:01:24 UTC
Description of problem:
$ sudo pulp-admin repo list
error: operation failed: Traceback (most recent call last):
  File "/home/pkilambi/code/pulp/src/pulp/server/webservices/controllers/base.py", line 57, in report_error
    return method(self, *args, **kwargs)
  File "/home/pkilambi/code/pulp/src/pulp/server/webservices/role_check.py", line 94, in check_roles
    user = self.check_admin(*fargs)
  File "/home/pkilambi/code/pulp/src/pulp/server/webservices/role_check.py", line 154, in check_admin
    return self.check_admin_cert(*fargs) or self.check_username_pass(*fargs)
  File "/home/pkilambi/code/pulp/src/pulp/server/webservices/role_check.py", line 206, in check_admin_cert
    if id != user['id']:
TypeError: 'NoneType' object is not subscriptable

Comment 1 Jason Connor 2011-02-18 03:37:36 UTC
Role check has been removed from pulp, so bugs pertaining to it are no longer valid


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