| Summary: | role_check causes a type error when user is not in db | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Pradeep Kilambi <pkilambi> |
| Component: | z_other | Assignee: | Jason Connor <jconnor> |
| Status: | CLOSED CANTFIX | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | unspecified | CC: | mmccune, skarmark |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | Sprint 21 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-02-18 03:37:36 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Role check has been removed from pulp, so bugs pertaining to it are no longer valid |
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