Actions
Issue #8395
closedAttributeError: type object 'AccessPolicy' has no attribute 'NotFound'
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 92
Quarter:
Description
Mar 12 12:28:42 pulp3-source-fedora32.fluffy.example.com gunicorn[19168]: File "/usr/local/lib/pulp/lib64/python3.8/site-packages/rest_framework/views.py", line 332, in check_permissions
Mar 12 12:28:42 pulp3-source-fedora32.fluffy.example.com gunicorn[19168]: if not permission.has_permission(request, self):
Mar 12 12:28:42 pulp3-source-fedora32.fluffy.example.com gunicorn[19168]: File "/usr/local/lib/pulp/lib64/python3.8/site-packages/rest_access_policy/access_policy.py", line 21, in has_permission
Mar 12 12:28:42 pulp3-source-fedora32.fluffy.example.com gunicorn[19168]: statements = self.get_policy_statements(request, view)
Mar 12 12:28:42 pulp3-source-fedora32.fluffy.example.com gunicorn[19168]: File "/home/vagrant/devel/pulpcore/pulpcore/app/access_policy.py", line 39, in get_policy_statements
Mar 12 12:28:42 pulp3-source-fedora32.fluffy.example.com gunicorn[19168]: except AccessPolicyModel.NotFound:
Mar 12 12:28:42 pulp3-source-fedora32.fluffy.example.com gunicorn[19168]: AttributeError: type object 'AccessPolicy' has no attribute 'NotFound'
Mar 12 12:28:42 pulp3-source-fedora32.fluffy.example.com gunicorn[19168]: pulp [2bcb0cd76210427abce820a01fbae3bb]: 127.0.0.1 - admin [12/Mar/2021:12:28:42 +0000] "GET /testview/ HTTP/1.1" 500 27 "-" "HTTPie/2.4.0"
Updated by pulpbot almost 4 years ago
- Status changed from NEW to POST
Updated by pulpbot almost 4 years ago
Updated by fao89 almost 4 years ago
- Triaged changed from No to Yes
- Sprint set to Sprint 92
Added by ipanova@redhat.com almost 4 years ago
Updated by ipanova@redhat.com almost 4 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulpcore|49dfcb152df321ec0b981b0541da66c23c955420.
Updated by ipanova@redhat.com almost 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Updated by ipanova@redhat.com over 3 years ago
- Assignee set to ipanova@redhat.com
Actions
Removed addressing AccessPolicy via the viewset's classname.
closes #8397 closes #8395