Project

Profile

Help

Issue #8395

closed

AttributeError: type object 'AccessPolicy' has no attribute 'NotFound'

Added by ipanova@redhat.com over 3 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
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"

Also available in: Atom PDF